Skip to content

Commit a30b0a6

Browse files
committed
actually mark the function const
1 parent ae70ab0 commit a30b0a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/mem/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ pub use crate::intrinsics::transmute;
111111
#[inline]
112112
#[rustc_const_unstable(feature = "const_forget", issue = "69616")]
113113
#[stable(feature = "rust1", since = "1.0.0")]
114-
pub fn forget<T>(t: T) {
114+
pub const fn forget<T>(t: T) {
115115
ManuallyDrop::new(t);
116116
}
117117

0 commit comments

Comments
 (0)