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 1a525ab commit 3ce564aCopy full SHA for 3ce564a
compiler/rustc_attr_parsing/src/attributes/traits.rs
@@ -158,7 +158,7 @@ pub(crate) struct FundamentalParser;
158
impl<S: Stage> NoArgsAttributeParser<S> for FundamentalParser {
159
const PATH: &[Symbol] = &[sym::fundamental];
160
const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Error;
161
- const ALLOWED_TARGETS: AllowedTargets = AllowedTargets::AllowList(&[Allow(Target::Struct)]);
+ const ALLOWED_TARGETS: AllowedTargets = AllowedTargets::AllowList(&[Allow(Target::Struct), Allow(Target::Trait)]);
162
const CREATE: fn(Span) -> AttributeKind = |_| AttributeKind::Fundamental;
163
}
164
0 commit comments