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 1ae7c49 commit e8f90b1Copy full SHA for e8f90b1
compiler/rustc_attr_parsing/src/context.rs
@@ -1060,6 +1060,9 @@ pub(crate) fn allowed_targets_applied(
1060
if !features.stmt_expr_attributes() {
1061
allowed_targets.retain(|t| !matches!(t, Target::Expression | Target::Statement));
1062
}
1063
+ if !features.extern_types() {
1064
+ allowed_targets.retain(|t| !matches!(t, Target::ForeignTy));
1065
+ }
1066
1067
1068
// We define groups of "similar" targets.
0 commit comments