Skip to content

Commit ae70ab0

Browse files
committed
constify mem::forget
1 parent 360e42d commit ae70ab0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libcore/mem/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ pub use crate::intrinsics::transmute;
109109
/// [ub]: ../../reference/behavior-considered-undefined.html
110110
/// [`ManuallyDrop`]: struct.ManuallyDrop.html
111111
#[inline]
112+
#[rustc_const_unstable(feature = "const_forget", issue = "69616")]
112113
#[stable(feature = "rust1", since = "1.0.0")]
113114
pub fn forget<T>(t: T) {
114115
ManuallyDrop::new(t);

0 commit comments

Comments
 (0)