diff options
| author | Amanieu d'Antras <amanieu@gmail.com> | 2021-08-12 00:18:53 +0100 |
|---|---|---|
| committer | Amanieu d'Antras <amanieu@gmail.com> | 2021-08-15 13:14:32 +0100 |
| commit | 6fd4f3463f54a7b06189dcc783d5e14593ff7e15 (patch) | |
| tree | eaa881001f2c2ac961082f60254c05a3507d3152 | |
| parent | 4dd933cdc244e9aed766553909a5ebf7572baec1 (diff) | |
Allow the use of the deprecated llvm_asm! in black_box
| -rw-r--r-- | library/core/src/hint.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/hint.rs b/library/core/src/hint.rs index a4924554919..ba878ff66a0 100644 --- a/library/core/src/hint.rs +++ b/library/core/src/hint.rs @@ -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. |
