const_eval_select: make it safe but be careful with what we expose on stable for now
This commit is contained in:
parent
4cdd20584c
commit
374607d6b9
18 changed files with 84 additions and 43 deletions
|
@ -385,6 +385,7 @@ pub const fn handle_alloc_error(layout: Layout) -> ! {
|
|||
}
|
||||
|
||||
#[cfg(not(feature = "panic_immediate_abort"))]
|
||||
#[cfg_attr(not(bootstrap), allow(unused_unsafe))] // on bootstrap bump, remove unsafe block
|
||||
unsafe {
|
||||
core::intrinsics::const_eval_select((layout,), ct_error, rt_error)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue