Skip to content

Commit 18b780c

Browse files
committed
integrate parsed lint attrs into lint level system
1 parent 2e1bbdb commit 18b780c

2 files changed

Lines changed: 122 additions & 238 deletions

File tree

compiler/rustc_attr_parsing/src/attributes/lint.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,11 @@ impl<S: Stage, T: Lint + 'static + Default> AttributeParser<S> for LintParser<T>
124124
Allow(Target::Delegation { mac: false }),
125125
Allow(Target::Delegation { mac: true }),
126126
Allow(Target::GenericParam { kind: GenericParamKind::Type, has_default: false }),
127+
Allow(Target::GenericParam { kind: GenericParamKind::Lifetime, has_default: false }),
128+
Allow(Target::GenericParam { kind: GenericParamKind::Const, has_default: false }),
129+
Allow(Target::GenericParam { kind: GenericParamKind::Type, has_default: true }),
130+
Allow(Target::GenericParam { kind: GenericParamKind::Lifetime, has_default: true }),
131+
Allow(Target::GenericParam { kind: GenericParamKind::Const, has_default: true }),
127132
Warn(Target::MacroCall),
128133
])
129134
};

0 commit comments

Comments
 (0)