mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
actually mark the function const
This commit is contained in:
parent
ae70ab071a
commit
a30b0a61b8
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user