From 7aa8946c7271f7077df537ed8e3e0b544252c466 Mon Sep 17 00:00:00 2001 From: Amanieu d'Antras Date: Tue, 26 May 2020 11:13:04 +0100 Subject: [PATCH] Update src/librustc_ast_lowering/expr.rs Co-authored-by: Oliver Scherer --- src/librustc_ast_lowering/expr.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_ast_lowering/expr.rs b/src/librustc_ast_lowering/expr.rs index d8002bd3e19ae..b7f2e9a9050df 100644 --- a/src/librustc_ast_lowering/expr.rs +++ b/src/librustc_ast_lowering/expr.rs @@ -976,7 +976,7 @@ impl<'hir> LoweringContext<'_, 'hir> { fn lower_expr_asm(&mut self, sp: Span, asm: &InlineAsm) -> hir::ExprKind<'hir> { if self.sess.asm_arch.is_none() { struct_span_err!(self.sess, sp, E0472, "asm! is unsupported on this target").emit(); - }; + } if asm.options.contains(InlineAsmOptions::ATT_SYNTAX) && !matches!( self.sess.asm_arch,