Convert NAMED_ASM_LABELS lint to diag struct

This commit is contained in:
Xiretza
2024-04-16 16:23:47 +00:00
parent 36902fbcf6
commit bac6b6248b
5 changed files with 14 additions and 20 deletions

View File

@@ -179,10 +179,6 @@ pub(super) fn builtin(sess: &Session, diagnostic: BuiltinLintDiag, diag: &mut Di
Applicability::MachineApplicable,
);
}
BuiltinLintDiag::NamedAsmLabel(help) => {
diag.help(help);
diag.note("see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information");
}
BuiltinLintDiag::UnexpectedCfgName(name, value) => {
check_cfg::unexpected_cfg_name(sess, diag, name, value)
}