about summary refs log tree commit diff
path: root/compiler/rustc_attr_parsing/src/lints.rs
AgeCommit message (Collapse)AuthorLines
2025-08-26Rollup merge of #145792 - scrabsha:push-umpytyxunpxq, r=jdonszelmannSamuel Tardieu-0/+14
Use attribute name in message for "outer attr used as inner attr" errors
2025-08-25Use attribute name in message for "outer attr used as inner attr" errorsSasha Pourcelot-0/+14
2025-08-24Warn on macro calls for attributes that had this behaviour previouslyJonathan Brouwer-2/+8
2025-08-24Support lints in early attribute parsingJana Dönszelmann-3/+3
2025-08-21refactor target checking, move out of context.rs and rename MaybeWarn to PolicyJana Dönszelmann-4/+8
2025-08-19Make tool-only suggestion to remove attributes on invalid targetsJonathan Brouwer-0/+1
2025-08-14Allow attribute parsers to specify a list of allowed targetsJonathan Brouwer-1/+22
Every acceptor gets an `ALLOWED_TARGETS` specification which can specify per target whether it is allowed, warned, or errored.
2025-07-31remove rustc_attr_data_structuresJana Dönszelmann-1/+1
2025-07-06Rewrite empty attribute lintJonathan Brouwer-0/+6
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
2025-06-17fix bugs in inline/force_inline and diagnostics of all attr parsersJana Dönszelmann-1/+14
2025-06-12introduce new lint infraJana Dönszelmann-0/+19
lint on duplicates during attribute parsing To do this we stuff them in the diagnostic context to be emitted after hir is constructed