diff options
| author | est31 <MTest31@outlook.com> | 2022-04-17 18:12:06 +0200 |
|---|---|---|
| committer | est31 <MTest31@outlook.com> | 2022-05-05 19:13:00 +0200 |
| commit | 5646e9a172698edb4ff39f6c47d314aaa437b0fb (patch) | |
| tree | 0ef361c4ed96f5db5d80750772edecaa85796971 /compiler/rustc_codegen_llvm | |
| parent | 0bd2232fe4a474af108666bdeb24c44b9e10669a (diff) | |
| download | rust-5646e9a172698edb4ff39f6c47d314aaa437b0fb.tar.gz rust-5646e9a172698edb4ff39f6c47d314aaa437b0fb.zip | |
Allow unused rules in some places in the compiler, library and tools
Diffstat (limited to 'compiler/rustc_codegen_llvm')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/intrinsic.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/src/intrinsic.rs b/compiler/rustc_codegen_llvm/src/intrinsic.rs index cf9cf1b70aa..4407297c943 100644 --- a/compiler/rustc_codegen_llvm/src/intrinsic.rs +++ b/compiler/rustc_codegen_llvm/src/intrinsic.rs @@ -816,6 +816,7 @@ fn generic_simd_intrinsic<'ll, 'tcx>( span: Span, ) -> Result<&'ll Value, ()> { // macros for error handling: + #[cfg_attr(not(bootstrap), allow(unused_macro_rules))] macro_rules! emit_error { ($msg: tt) => { emit_error!($msg, ) @@ -1144,6 +1145,7 @@ fn generic_simd_intrinsic<'ll, 'tcx>( span: Span, args: &[OperandRef<'tcx, &'ll Value>], ) -> Result<&'ll Value, ()> { + #[cfg_attr(not(bootstrap), allow(unused_macro_rules))] macro_rules! emit_error { ($msg: tt) => { emit_error!($msg, ) |
