Allow the use of the deprecated llvm_asm! in black_box
This commit is contained in:
@@ -155,6 +155,7 @@ pub fn spin_loop() {
|
|||||||
#[inline]
|
#[inline]
|
||||||
#[unstable(feature = "bench_black_box", issue = "64102")]
|
#[unstable(feature = "bench_black_box", issue = "64102")]
|
||||||
#[cfg_attr(not(bootstrap), allow(unused_mut))]
|
#[cfg_attr(not(bootstrap), allow(unused_mut))]
|
||||||
|
#[cfg_attr(bootstrap, allow(deprecated))]
|
||||||
pub fn black_box<T>(mut dummy: T) -> T {
|
pub fn black_box<T>(mut dummy: T) -> T {
|
||||||
#[cfg(bootstrap)]
|
#[cfg(bootstrap)]
|
||||||
// SAFETY: the inline assembly is a no-op.
|
// SAFETY: the inline assembly is a no-op.
|
||||||
|
|||||||
Reference in New Issue
Block a user