Skip to content

Commit deb9d38

Browse files
committed
Another
1 parent a1e9fcb commit deb9d38

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/src/mem/manually_drop.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ impl<T> ManuallyDrop<T> {
111111
#[must_use = "if you don't need the value, you can use `ManuallyDrop::drop` instead"]
112112
#[stable(feature = "manually_drop_take", since = "1.42.0")]
113113
#[inline]
114+
#[cfg_attr(not(bootstrap), rustc_no_ubchecks)]
114115
pub unsafe fn take(slot: &mut ManuallyDrop<T>) -> T {
115116
// SAFETY: we are reading from a reference, which is guaranteed
116117
// to be valid for reads.

0 commit comments

Comments
 (0)