File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1732,6 +1732,11 @@ extern "rust-intrinsic" {
1732
1732
/// See documentation of `<*const T>::guaranteed_ne` for details.
1733
1733
#[ rustc_const_unstable( feature = "const_raw_ptr_comparison" , issue = "53020" ) ]
1734
1734
pub fn ptr_guaranteed_ne < T > ( ptr : * const T , other : * const T ) -> bool ;
1735
+
1736
+ /// Allocate at compile time. Should not be called at runtime.
1737
+ #[ rustc_const_unstable( feature = "const_heap" , issue = "79597" ) ]
1738
+ #[ cfg( not( bootstrap) ) ]
1739
+ pub fn const_allocate ( size : usize , align : usize ) -> * mut u8 ;
1735
1740
}
1736
1741
1737
1742
// Some functions are defined here because they accidentally got made
Original file line number Diff line number Diff line change 68
68
#![ feature( arbitrary_self_types) ]
69
69
#![ feature( asm) ]
70
70
#![ feature( cfg_target_has_atomic) ]
71
+ #![ cfg_attr( not( bootstrap) , feature( const_heap) ) ]
71
72
#![ feature( const_alloc_layout) ]
72
73
#![ feature( const_discriminant) ]
73
74
#![ feature( const_cell_into_inner) ]
You can’t perform that action at this time.
0 commit comments