File tree 3 files changed +1
-4
lines changed
3 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ pub use crate::intrinsics::transmute;
142
142
/// [ub]: ../../reference/behavior-considered-undefined.html
143
143
/// [`ManuallyDrop`]: struct.ManuallyDrop.html
144
144
#[ inline]
145
- #[ rustc_const_unstable ( feature = "const_forget" , issue = "69616 " ) ]
145
+ #[ rustc_const_stable ( feature = "const_forget" , since = "1.46.0 " ) ]
146
146
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
147
147
pub const fn forget < T > ( t : T ) {
148
148
ManuallyDrop :: new ( t) ;
Original file line number Diff line number Diff line change 40
40
#![ feature( const_raw_ptr_deref) ]
41
41
#![ feature( never_type) ]
42
42
#![ feature( unwrap_infallible) ]
43
- #![ feature( const_forget) ]
44
43
#![ feature( option_unwrap_none) ]
45
44
#![ feature( peekable_next_if) ]
46
45
#![ feature( partition_point) ]
Original file line number Diff line number Diff line change 1
1
// check-pass
2
2
3
- #![ feature( const_forget) ]
4
-
5
3
use std:: mem:: forget;
6
4
7
5
const _: ( ) = forget ( 0i32 ) ;
You can’t perform that action at this time.
0 commit comments