From 5679241782e58ce29a5cae3c70eb67f91544c08e Mon Sep 17 00:00:00 2001 From: Ibraheem Ahmed Date: Sun, 23 Apr 2023 15:45:24 -0400 Subject: [PATCH 1/2] stabilize `ThreadId::as_u64` --- library/std/src/thread/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } From b6e6a9bec46e4860a755570e5a64b9aabb7e9052 Mon Sep 17 00:00:00 2001 From: Ibraheem Ahmed Date: Sun, 23 Apr 2023 16:08:44 -0400 Subject: [PATCH 2/2] remove use of `thread_id_value` feature --- compiler/rustc_data_structures/src/lib.rs | 1 - 1 file changed, 1 deletion(-) 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)]