We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5471a7 commit 4702a9aCopy full SHA for 4702a9a
compiler/rustc_passes/src/check_attr.rs
@@ -369,10 +369,8 @@ impl CheckAttrVisitor<'tcx> {
369
Target::Fn
370
| Target::Method(MethodKind::Trait { body: true } | MethodKind::Inherent) => true,
371
372
- // Allow foreign items for SIMD FFI.
373
- Target::ForeignFn | Target::ForeignMod | Target::ForeignTy | Target::ForeignStatic => {
374
- true
375
- }
+ // Allow foreign functions for SIMD FFI.
+ Target::ForeignFn => true,
376
377
// FIXME: #[target_feature] was previously erroneously allowed on statements and some
378
// crates used this, so only emit a warning.
0 commit comments