allow #[target_feature]
on #[naked]
functions
This commit is contained in:
parent
c6a166bac2
commit
a3bb0104ff
5 changed files with 7 additions and 27 deletions
|
@ -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,
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue