Skip to content

Commit 0d4976e

Browse files
committed
removed too much from rust-src.diff
1 parent 4059d55 commit 0d4976e

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

rust-src.diff

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,29 @@ index b5cc8038ca4..1261ed0cd89 100644
393393
fn name_cstr(&self) -> &CStr {
394394
&self.name
395395
}
396+
diff --git a/library/std/src/thread/mod.rs b/library/std/src/thread/mod.rs
397+
index 44c8a50fd86..c88760942f0 100644
398+
--- a/library/std/src/thread/mod.rs
399+
+++ b/library/std/src/thread/mod.rs
400+
@@ -204,8 +204,18 @@
401+
402+
#[unstable(feature = "libstd_thread_internals", issue = "none")]
403+
#[cfg(target_thread_local)]
404+
+#[cfg(not(test))]
405+
#[doc(hidden)]
406+
pub use self::local::fast::Key as __FastLocalKeyInner;
407+
+#[unstable(feature = "libstd_thread_internals", issue = "none")]
408+
+#[cfg(target_thread_local)]
409+
+#[cfg(test)] // when building for tests, use real std's key
410+
+pub use realstd::thread::__FastLocalKeyInner;
411+
+#[unstable(feature = "libstd_thread_internals", issue = "none")]
412+
+#[cfg(target_thread_local)]
413+
+#[cfg(test)]
414+
+pub use self::local::fast::Key as __FastLocalKeyInnerUnused; // we import this anyway to silence 'unused' warnings
415+
+
416+
#[unstable(feature = "libstd_thread_internals", issue = "none")]
417+
#[doc(hidden)]
418+
pub use self::local::os::Key as __OsLocalKeyInner;
396419
diff --git a/library/std/src/thread/tests.rs b/library/std/src/thread/tests.rs
397420
index ec68b529188..130e47c8d44 100644
398421
--- a/library/std/src/thread/tests.rs

0 commit comments

Comments
 (0)