File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 86
86
#![ feature( const_refs_to_cell) ]
87
87
#![ feature( const_panic) ]
88
88
#![ feature( const_pin) ]
89
- #![ feature( const_fn_union) ]
89
+ #![ cfg_attr ( bootstrap , feature( const_fn_union) ) ]
90
90
#![ feature( const_impl_trait) ]
91
91
#![ feature( const_fn_floating_point_arithmetic) ]
92
92
#![ feature( const_fn_fn_ptr_basics) ]
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ impl<T> [T] {
100
100
#[ rustc_const_stable( feature = "const_slice_len" , since = "1.39.0" ) ]
101
101
#[ inline]
102
102
// SAFETY: const sound because we transmute out the length field as a usize (which it must be)
103
- #[ rustc_allow_const_fn_unstable( const_fn_union) ]
103
+ #[ cfg_attr ( bootstrap , rustc_allow_const_fn_unstable( const_fn_union) ) ]
104
104
pub const fn len ( & self ) -> usize {
105
105
// FIXME: Replace with `crate::ptr::metadata(self)` when that is const-stable.
106
106
// As of this writing this causes a "Const-stable functions can only call other
You can’t perform that action at this time.
0 commit comments