File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -2151,7 +2151,7 @@ pub struct Invariant {
2151
2151
/// Returns a list of all validity invariants of the type.
2152
2152
pub const fn validity_invariants_of < T > ( ) -> & ' static [ Invariant ] {
2153
2153
extern "rust-intrinsic" {
2154
- #[ rustc_const_stable ( feature = "validity_invariants_of" , since = "1.40.0 " ) ]
2154
+ #[ rustc_const_unstable ( feature = "validity_invariants_of" , issue = "none " ) ]
2155
2155
pub fn validity_invariants_of < T > ( ) -> & ' static [ u8 ] ;
2156
2156
}
2157
2157
Original file line number Diff line number Diff line change @@ -626,6 +626,7 @@ impl<T> MaybeUninit<T> {
626
626
#[ inline( always) ]
627
627
#[ rustc_diagnostic_item = "assume_init" ]
628
628
#[ track_caller]
629
+ #[ rustc_allow_const_fn_unstable( const_refs_to_cell) ]
629
630
pub const unsafe fn assume_init ( self ) -> T {
630
631
// SAFETY: the caller must guarantee that `self` is initialized.
631
632
// This also means that `self` must be a `value` variant.
You can’t perform that action at this time.
0 commit comments