]> git.lizzy.rs Git - rust.git/commit
Speed up the "builtin lints only" case.
authorNicholas Nethercote <n.nethercote@gmail.com>
Fri, 9 Dec 2022 03:15:26 +0000 (14:15 +1100)
committerNicholas Nethercote <n.nethercote@gmail.com>
Sun, 11 Dec 2022 21:59:27 +0000 (08:59 +1100)
commit4ff5a3655f1e7bed94d847f6888a2c0659aba276
tree91841931c3108d27071d548086276a1de54b8b5d
parent3c53781800e50b2abc72c5b1542400eff48a8126
Speed up the "builtin lints only" case.

This commit partly undoes #104863, which combined the builtin lints pass
with other lints. This caused a slowdown, because often there are no
other lints, and it's faster to do a pass with a single lint directly
than it is to do a combined pass with a `passes` vector containing a
single lint.
compiler/rustc_lint/src/early.rs
compiler/rustc_lint/src/late.rs