actually mark the function const

This commit is contained in:
DutchGhost 2020-03-02 11:00:20 +01:00
parent ae70ab071a
commit a30b0a61b8

View File

@ -111,7 +111,7 @@ pub use crate::intrinsics::transmute;
#[inline]
#[rustc_const_unstable(feature = "const_forget", issue = "69616")]
#[stable(feature = "rust1", since = "1.0.0")]
pub fn forget<T>(t: T) {
pub const fn forget<T>(t: T) {
ManuallyDrop::new(t);
}