1
Fork 0

fix warning when building libcore for Miri

This commit is contained in:
Ralf Jung 2024-03-09 11:11:10 +01:00
parent 1b427b3bf7
commit 6aff1ca68c

View file

@ -3120,6 +3120,7 @@ pub(crate) const fn miri_promise_symbolic_alignment(ptr: *const (), align: usize
const fn compiletime(_ptr: *const (), _align: usize) {}
#[cfg_attr(not(bootstrap), allow(unused_unsafe))] // on bootstrap bump, remove unsafe block
// SAFETY: the extra behavior at runtime is for UB checks only.
unsafe {
const_eval_select((ptr, align), compiletime, runtime);