Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Allow the use of the deprecated llvm_asm! in black_box
  • Loading branch information
Amanieu committed Aug 15, 2021
1 parent 4dd933c commit 6fd4f34
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/core/src/hint.rs
Expand Up @@ -155,6 +155,7 @@ pub fn spin_loop() {
#[inline]
#[unstable(feature = "bench_black_box", issue = "64102")]
#[cfg_attr(not(bootstrap), allow(unused_mut))]
#[cfg_attr(bootstrap, allow(deprecated))]
pub fn black_box<T>(mut dummy: T) -> T {
#[cfg(bootstrap)]
// SAFETY: the inline assembly is a no-op.
Expand Down

0 comments on commit 6fd4f34

Please sign in to comment.