Skip to content

Commit 6aff1ca

Browse files
committed
fix warning when building libcore for Miri
1 parent 1b427b3 commit 6aff1ca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/src/intrinsics.rs

+1
Original file line numberDiff line numberDiff line change
@@ -3120,6 +3120,7 @@ pub(crate) const fn miri_promise_symbolic_alignment(ptr: *const (), align: usize
31203120

31213121
const fn compiletime(_ptr: *const (), _align: usize) {}
31223122

3123+
#[cfg_attr(not(bootstrap), allow(unused_unsafe))] // on bootstrap bump, remove unsafe block
31233124
// SAFETY: the extra behavior at runtime is for UB checks only.
31243125
unsafe {
31253126
const_eval_select((ptr, align), compiletime, runtime);

0 commit comments

Comments
 (0)