Skip to content

Commit

Permalink
Update src/librustc_ast_lowering/expr.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Oliver Scherer <github35764891676564198441@oli-obk.de>
  • Loading branch information
Amanieu and oli-obk authored May 26, 2020
1 parent 6faa82b commit 7aa8946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_ast_lowering/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7aa8946

Please sign in to comment.