We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 360e42d commit ae70ab0Copy full SHA for ae70ab0
src/libcore/mem/mod.rs
@@ -109,6 +109,7 @@ pub use crate::intrinsics::transmute;
109
/// [ub]: ../../reference/behavior-considered-undefined.html
110
/// [`ManuallyDrop`]: struct.ManuallyDrop.html
111
#[inline]
112
+#[rustc_const_unstable(feature = "const_forget", issue = "69616")]
113
#[stable(feature = "rust1", since = "1.0.0")]
114
pub fn forget<T>(t: T) {
115
ManuallyDrop::new(t);
0 commit comments