about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2022-04-17 18:12:06 +0200
committerest31 <MTest31@outlook.com>2022-05-05 19:13:00 +0200
commit5646e9a172698edb4ff39f6c47d314aaa437b0fb (patch)
tree0ef361c4ed96f5db5d80750772edecaa85796971 /compiler/rustc_codegen_llvm
parent0bd2232fe4a474af108666bdeb24c44b9e10669a (diff)
downloadrust-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.rs2
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, )