mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-04 03:07:25 +00:00
fix warning when building libcore for Miri
This commit is contained in:
parent
1b427b3bf7
commit
6aff1ca68c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user