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 a1e9fcb commit deb9d38Copy full SHA for deb9d38
library/core/src/mem/manually_drop.rs
@@ -111,6 +111,7 @@ impl<T> ManuallyDrop<T> {
111
#[must_use = "if you don't need the value, you can use `ManuallyDrop::drop` instead"]
112
#[stable(feature = "manually_drop_take", since = "1.42.0")]
113
#[inline]
114
+ #[cfg_attr(not(bootstrap), rustc_no_ubchecks)]
115
pub unsafe fn take(slot: &mut ManuallyDrop<T>) -> T {
116
// SAFETY: we are reading from a reference, which is guaranteed
117
// to be valid for reads.
0 commit comments