diff options
| author | Yuki Okushi <yuki.okushi@huawei.com> | 2021-10-16 14:04:21 +0900 |
|---|---|---|
| committer | Yuki Okushi <yuki.okushi@huawei.com> | 2021-10-26 11:02:47 +0900 |
| commit | f5cbb9b9e6e8c2d2e1932b0e7b6556f689d44b0d (patch) | |
| tree | 36b53dec8376840453e298b30789a70fb829df8f | |
| parent | ffba4309241a7a21df4ec7b16f1357cbcd327d6e (diff) | |
| download | rust-f5cbb9b9e6e8c2d2e1932b0e7b6556f689d44b0d.tar.gz rust-f5cbb9b9e6e8c2d2e1932b0e7b6556f689d44b0d.zip | |
Fix some typos
| -rw-r--r-- | compiler/rustc_ast_lowering/src/asm.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_ast_lowering/src/asm.rs b/compiler/rustc_ast_lowering/src/asm.rs index 957b14f3487..8aea37749c7 100644 --- a/compiler/rustc_ast_lowering/src/asm.rs +++ b/compiler/rustc_ast_lowering/src/asm.rs @@ -11,8 +11,8 @@ use std::fmt::Write; impl<'a, 'hir> LoweringContext<'a, 'hir> { crate fn lower_inline_asm(&mut self, sp: Span, asm: &InlineAsm) -> &'hir hir::InlineAsm<'hir> { - // Rustdoc needs to support asm! from foriegn architectures: don't try - // 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. 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, "inline assembly is unsupported on this target") |
