We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6888fb1 commit dc82718Copy full SHA for dc82718
library/std/src/sys/unix/locks/futex.rs
@@ -253,6 +253,6 @@ impl ReentrantMutex {
253
/// This can be used as a non-null usize-sized ID.
254
pub fn current_thread_unique_ptr() -> usize {
255
// Use a non-drop type to make sure it's still available during thread destruction.
256
- thread_local! { static X: u8 = 0 }
+ thread_local! { static X: u8 = const { 0 } }
257
X.with(|x| <*const _>::addr(x))
258
}
0 commit comments