This commit is contained in:
He1pa 2023-06-28 10:52:48 +08:00
parent 8af8a95a64
commit 453603a4b5
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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,
}));
}

View File

@ -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,
}