@@ -343,7 +343,7 @@ impl CheckAttrVisitor<'_> {
343
343
Target :: Fn
344
344
| Target :: Method ( MethodKind :: Trait { body : true } | MethodKind :: Inherent ) => true ,
345
345
// FIXME(#80564): We permit struct fields, match arms and macro defs to have an
346
- // `#[allow_internal_unstable ]` attribute with just a lint, because we previously
346
+ // `#[naked ]` attribute with just a lint, because we previously
347
347
// erroneously allowed it and some crates used it accidentally, to to be compatible
348
348
// with crates depending on them, we can't throw an error here.
349
349
Target :: Field | Target :: Arm | Target :: MacroDef => {
@@ -1210,8 +1210,8 @@ impl CheckAttrVisitor<'_> {
1210
1210
self . inline_attr_str_error_with_macro_def ( hir_id, attr, "link_name" ) ;
1211
1211
}
1212
1212
_ => {
1213
- // FIXME: #[cold ] was previously allowed on non-functions/statics and some crates
1214
- // used this, so only emit a warning.
1213
+ // FIXME: #[link_name ] was previously allowed on non-functions/statics and
1214
+ // some crates used this, so only emit a warning.
1215
1215
self . tcx . struct_span_lint_hir ( UNUSED_ATTRIBUTES , hir_id, attr. span , |lint| {
1216
1216
let mut diag =
1217
1217
lint. build ( "attribute should be applied to a foreign function or static" ) ;
@@ -1796,7 +1796,7 @@ impl CheckAttrVisitor<'_> {
1796
1796
}
1797
1797
}
1798
1798
1799
- /// Outputs an error for `#[allow_internal_unstable ]` which can only be applied to macros.
1799
+ /// Outputs an error for `#[allow_const_fn_unstable ]` which can only be applied to macros.
1800
1800
/// (Allows proc_macro functions)
1801
1801
fn check_rustc_allow_const_fn_unstable (
1802
1802
& self ,
@@ -1812,11 +1812,11 @@ impl CheckAttrVisitor<'_> {
1812
1812
true
1813
1813
}
1814
1814
// FIXME(#80564): We permit struct fields and match arms to have an
1815
- // `#[allow_internal_unstable ]` attribute with just a lint, because we previously
1815
+ // `#[allow_const_fn_unstable ]` attribute with just a lint, because we previously
1816
1816
// erroneously allowed it and some crates used it accidentally, to to be compatible
1817
1817
// with crates depending on them, we can't throw an error here.
1818
1818
Target :: Field | Target :: Arm | Target :: MacroDef => {
1819
- self . inline_attr_str_error_with_macro_def ( hir_id, attr, "allow_internal_unstable " ) ;
1819
+ self . inline_attr_str_error_with_macro_def ( hir_id, attr, "allow_const_fn_unstable " ) ;
1820
1820
true
1821
1821
}
1822
1822
_ => {
0 commit comments