We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60c9253 commit e3c3ae3Copy full SHA for e3c3ae3
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