1
Fork 0

const_eval_select: make it safe but be careful with what we expose on stable for now

This commit is contained in:
Ralf Jung 2024-03-02 12:53:28 +01:00
parent 4cdd20584c
commit 374607d6b9
18 changed files with 84 additions and 43 deletions

View file

@ -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)
}