diff --git a/compiler/rustc_data_structures/src/lib.rs b/compiler/rustc_data_structures/src/lib.rs index 426d2c4034bd8..4c7c84533aec9 100644 --- a/compiler/rustc_data_structures/src/lib.rs +++ b/compiler/rustc_data_structures/src/lib.rs @@ -24,7 +24,6 @@ #![feature(rustc_attrs)] #![feature(negative_impls)] #![feature(test)] -#![feature(thread_id_value)] #![feature(vec_into_raw_parts)] #![feature(get_mut_unchecked)] #![feature(lint_reasons)] diff --git a/library/std/src/thread/mod.rs b/library/std/src/thread/mod.rs index 13b845b25c92d..ae38dcefa56a4 100644 --- a/library/std/src/thread/mod.rs +++ b/library/std/src/thread/mod.rs @@ -1131,7 +1131,7 @@ impl ThreadId { /// it is not guaranteed which values new threads will return, and this may /// change across Rust versions. #[must_use] - #[unstable(feature = "thread_id_value", issue = "67939")] + #[stable(feature = "thread_id_value", since = "CURRENT_RUSTC_VERSION")] pub fn as_u64(&self) -> NonZeroU64 { self.0 }