Port #[allow_internal_unsafe] to the new attribute system (attempt 2)

This commit is contained in:
Sasha Pourcelot
2025-08-03 11:54:07 +02:00
parent 577166503a
commit 6603fe1caa
11 changed files with 85 additions and 28 deletions

View File

@@ -643,8 +643,8 @@ pub(crate) struct UsedStatic {
}
#[derive(Diagnostic)]
#[diag(passes_allow_internal_unstable)]
pub(crate) struct AllowInternalUnstable {
#[diag(passes_macro_only_attribute)]
pub(crate) struct MacroOnlyAttribute {
#[primary_span]
pub attr_span: Span,
#[label]