about summary refs log tree commit diff
diff options
context:
space:
mode:
authorHe1pa <18012015693@163.com>2023-06-28 10:52:48 +0800
committerHe1pa <18012015693@163.com>2023-06-28 10:52:48 +0800
commit453603a4b52cc2a5e1acdab120840acc3f3a1811 (patch)
tree13b5209b26a2b0f00251232cfe8a96954472f591
parent8af8a95a64cd765273aae3f4dc0aa50faab148c9 (diff)
downloadrust-453603a4b52cc2a5e1acdab120840acc3f3a1811.tar.gz
rust-453603a4b52cc2a5e1acdab120840acc3f3a1811.zip
fix typo
-rw-r--r--compiler/rustc_builtin_macros/messages.ftl2
-rw-r--r--compiler/rustc_builtin_macros/src/asm.rs2
-rw-r--r--compiler/rustc_builtin_macros/src/errors.rs4
3 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_builtin_macros/messages.ftl b/compiler/rustc_builtin_macros/messages.ftl
index 68349449f55..322222ae330 100644
--- a/compiler/rustc_builtin_macros/messages.ftl
+++ b/compiler/rustc_builtin_macros/messages.ftl
@@ -116,7 +116,7 @@ builtin_macros_env_takes_args = `env!()` takes 1 or 2 arguments
 
 builtin_macros_expected_one_cfg_pattern = expected 1 cfg-pattern
 
-builtin_macros_expected_register_class_or_explict_register = expected register class or explicit register
+builtin_macros_expected_register_class_or_explicit_register = expected register class or explicit register
 
 builtin_macros_export_macro_rules = cannot export macro_rules! macros from a `proc-macro` crate type currently
 
diff --git a/compiler/rustc_builtin_macros/src/asm.rs b/compiler/rustc_builtin_macros/src/asm.rs
index 5dcbb42ca84..6187e4f513b 100644
--- a/compiler/rustc_builtin_macros/src/asm.rs
+++ b/compiler/rustc_builtin_macros/src/asm.rs
@@ -424,7 +424,7 @@ fn parse_reg<'a>(
             ast::InlineAsmRegOrRegClass::Reg(symbol)
         }
         _ => {
-            return Err(p.sess.create_err(errors::ExpectedRegisterClassOrExplictRegister {
+            return Err(p.sess.create_err(errors::ExpectedRegisterClassOrExplicitRegister {
                 span: p.token.span,
             }));
         }
diff --git a/compiler/rustc_builtin_macros/src/errors.rs b/compiler/rustc_builtin_macros/src/errors.rs
index c3beb5da86e..7b2a375a822 100644
--- a/compiler/rustc_builtin_macros/src/errors.rs
+++ b/compiler/rustc_builtin_macros/src/errors.rs
@@ -815,8 +815,8 @@ pub(crate) struct TestRunnerNargs {
 }
 
 #[derive(Diagnostic)]
-#[diag(builtin_macros_expected_register_class_or_explict_register)]
-pub(crate) struct ExpectedRegisterClassOrExplictRegister {
+#[diag(builtin_macros_expected_register_class_or_explicit_register)]
+pub(crate) struct ExpectedRegisterClassOrExplicitRegister {
     #[primary_span]
     pub(crate) span: Span,
 }