]> git.lizzy.rs Git - rust.git/commit
Eliminate four unnecessary lint macros.
authorNicholas Nethercote <n.nethercote@gmail.com>
Fri, 25 Nov 2022 02:42:01 +0000 (13:42 +1100)
committerNicholas Nethercote <n.nethercote@gmail.com>
Fri, 2 Dec 2022 02:59:28 +0000 (13:59 +1100)
commit33faf0169009edc978af31098710a44070da4657
tree3ead59d98544c6718ccb007ef679711d51ff9115
parentc090c6880c0183ba248bde4a16e29ba29ac4fbba
Eliminate four unnecessary lint macros.

The lint definitions use macros heavily. This commit merges some of them
that are split unnecessarily. I find the reduced indirection makes it
easier to imagine what the generated code will look like.
compiler/rustc_lint/src/early.rs
compiler/rustc_lint/src/late.rs
compiler/rustc_lint/src/passes.rs