We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffba430 commit f5cbb9bCopy full SHA for f5cbb9b
compiler/rustc_ast_lowering/src/asm.rs
@@ -11,8 +11,8 @@ use std::fmt::Write;
11
12
impl<'a, 'hir> LoweringContext<'a, 'hir> {
13
crate fn lower_inline_asm(&mut self, sp: Span, asm: &InlineAsm) -> &'hir hir::InlineAsm<'hir> {
14
- // Rustdoc needs to support asm! from foriegn architectures: don't try
15
- // lowering the register contraints in this case.
+ // Rustdoc needs to support asm! from foreign architectures: don't try
+ // lowering the register constraints in this case.
16
let asm_arch = if self.sess.opts.actually_rustdoc { None } else { self.sess.asm_arch };
17
if asm_arch.is_none() && !self.sess.opts.actually_rustdoc {
18
struct_span_err!(self.sess, sp, E0472, "inline assembly is unsupported on this target")
0 commit comments