From bb6bec1d55586abfb6aa6ca924994b09035752dc Mon Sep 17 00:00:00 2001 From: Amanieu d'Antras Date: Mon, 26 Apr 2021 19:49:26 +0100 Subject: Clarify error message when both asm! and global_asm! are unsupported --- compiler/rustc_ast_lowering/src/asm.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'compiler/rustc_ast_lowering/src') 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)) -- cgit 1.4.1-3-g733a5