Skip to content

Commit 3ce564a

Browse files
Wip
1 parent 1a525ab commit 3ce564a

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_attr_parsing/src/attributes

1 file changed

+1
-1
lines changed

compiler/rustc_attr_parsing/src/attributes/traits.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ pub(crate) struct FundamentalParser;
158158
impl<S: Stage> NoArgsAttributeParser<S> for FundamentalParser {
159159
const PATH: &[Symbol] = &[sym::fundamental];
160160
const ON_DUPLICATE: OnDuplicate<S> = OnDuplicate::Error;
161-
const ALLOWED_TARGETS: AllowedTargets = AllowedTargets::AllowList(&[Allow(Target::Struct)]);
161+
const ALLOWED_TARGETS: AllowedTargets = AllowedTargets::AllowList(&[Allow(Target::Struct), Allow(Target::Trait)]);
162162
const CREATE: fn(Span) -> AttributeKind = |_| AttributeKind::Fundamental;
163163
}
164164

0 commit comments

Comments
 (0)