about summary refs log tree commit diff
path: root/compiler/rustc_ast_lowering/src
diff options
context:
space:
mode:
authorAmanieu d'Antras <amanieu@gmail.com>2021-04-26 19:49:26 +0100
committerAmanieu d'Antras <amanieu@gmail.com>2021-05-13 22:31:58 +0100
commitbb6bec1d55586abfb6aa6ca924994b09035752dc (patch)
treeeee60ce0de61e689351e7053a0951ecd4fabc1a4 /compiler/rustc_ast_lowering/src
parent0df83f8e5e85268b0134f8c698e09b5c8d6b3ef6 (diff)
downloadrust-bb6bec1d55586abfb6aa6ca924994b09035752dc.tar.gz
rust-bb6bec1d55586abfb6aa6ca924994b09035752dc.zip
Clarify error message when both asm! and global_asm! are unsupported
Diffstat (limited to 'compiler/rustc_ast_lowering/src')
-rw-r--r--compiler/rustc_ast_lowering/src/asm.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_ast_lowering/src/asm.rs b/compiler/rustc_ast_lowering/src/asm.rs
index 6acdfa1b5f8..1c3fae2afe7 100644
--- a/compiler/rustc_ast_lowering/src/asm.rs
+++ b/compiler/rustc_ast_lowering/src/asm.rs
@@ -15,7 +15,8 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
         // lowering the register contraints in this case.
         let asm_arch = if self.sess.opts.actually_rustdoc { None } else { self.sess.asm_arch };
         if asm_arch.is_none() && !self.sess.opts.actually_rustdoc {
-            struct_span_err!(self.sess, sp, E0472, "asm! is unsupported on this target").emit();
+            struct_span_err!(self.sess, sp, E0472, "inline assembly is unsupported on this target")
+                .emit();
         }
         if asm.options.contains(InlineAsmOptions::ATT_SYNTAX)
             && !matches!(asm_arch, Some(asm::InlineAsmArch::X86 | asm::InlineAsmArch::X86_64))