1
Fork 0

allow #[target_feature] on #[naked] functions

This commit is contained in:
Folkert 2024-07-23 16:02:32 +02:00
parent c6a166bac2
commit a3bb0104ff
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
5 changed files with 7 additions and 27 deletions

View file

@ -423,7 +423,6 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
//
// * `#[inline]`
// * `#[track_caller]`
// * `#[target_feature]`
// * `#[test]`, `#[ignore]`, `#[should_panic]`
//
// NOTE: when making changes to this list, check that `error_codes/E0736.md` remains accurate
@ -452,6 +451,7 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
sym::instruction_set,
// code generation
sym::cold,
sym::target_feature,
// documentation
sym::doc,
];