We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43f21a6 commit c63b0ceCopy full SHA for c63b0ce
library/std/src/sys/thread_local/mod.rs
@@ -94,7 +94,7 @@ mod lazy {
94
/// Watch out: unsynchronized internal mutability!
95
///
96
/// # Safety
97
- /// Unsound if called while any `&'static T` is active.
+ /// Causes UB if any reference to the value is used after this.
98
#[allow(unused)]
99
pub(crate) unsafe fn take(&self) -> Option<T> {
100
let mutable: *mut _ = UnsafeCell::get(&self.inner);
0 commit comments