Commit 2972b5e
committed
Auto merge of #152369 - Bryntet:lint_attrs, r=JonathanBrouwer,jdonszelmann
Port lint attributes to attribute parser
*[View all comments](https://triagebot.infra.rust-lang.org/gh-comments/rust-lang/rust/pull/152369)*
Tracking issue: #131229
Ports `#[allow]`, `#[deny]`, `#[expect]`, `#[forbid]`, and `#[warn]` to being parsed attrs
I tried my best to make this PR as small as possible, it was difficult. I hope it isn't too difficult to review
r? @JonathanBrouwer
r? @jdonszelmann99 files changed
Lines changed: 1980 additions & 1455 deletions
File tree
- compiler
- rustc_ast_lowering/src
- rustc_attr_parsing/src
- attributes
- rustc_error_codes/src/error_codes
- rustc_expand/src
- rustc_hir_typeck/src
- rustc_hir/src
- attrs
- rustc_interface/src
- rustc_lint_defs
- src
- rustc_lint/src
- early
- rustc_mir_build/src/builder
- rustc_passes/src
- rustc_resolve/src
- rustc_session/src
- rustc_span/src
- src/tools/clippy
- clippy_lints/src
- attrs
- returns
- tests/ui
- tests
- pretty
- rustdoc-ui/lints
- ui
- argument-suggestions
- attributes
- unsafe
- diagnostic-flags
- error-codes
- feature-gates
- impl-trait/diagnostics
- lint
- keyword-idents
- rfc-2383-lint-reason
- semicolon-in-expressions-from-macros
- unused
- parser/issues
- proc-macro
- tool-attributes
- unpretty
- where-clauses
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4224 | 4224 | | |
4225 | 4225 | | |
4226 | 4226 | | |
4227 | | - | |
4228 | 4227 | | |
4229 | 4228 | | |
4230 | 4229 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| |||
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
298 | 303 | | |
299 | 304 | | |
300 | 305 | | |
301 | | - | |
| 306 | + | |
302 | 307 | | |
303 | 308 | | |
304 | 309 | | |
| |||
0 commit comments