about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/tests.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-12-07 03:52:19 +0000
committerbors <bors@rust-lang.org>2022-12-07 03:52:19 +0000
commite491d2b24da8c11c902bb836d189590600f26caf (patch)
tree14440ff39683b7593b49d6cd55ea6c3c0051d11b /compiler/rustc_mir_transform/src/coverage/tests.rs
parentd43674e2c9b1a7b134ef76378c30e822c75c9aa1 (diff)
parent8980d9a76d68f1b75f104c955aaafb0b0d0d58bc (diff)
downloadrust-e491d2b24da8c11c902bb836d189590600f26caf.tar.gz
rust-e491d2b24da8c11c902bb836d189590600f26caf.zip
Auto merge of #105291 - nnethercote:remove-LintPassObjects, r=cjgillot
Remove `{Early,Late}LintPassObjects`.

`EarlyContextAndPass` wraps a single early lint pass. We aggregate multiple passes into that single pass by using `EarlyLintPassObjects`.

This commit removes `EarlyLintPassObjects` by changing `EarlyContextAndPass` into `EarlyContextAndPasses`. I.e. it just removes a level of indirection. This makes the code simpler and slightly faster.

The commit does likewise for late lints.

r? `@cjgillot`
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/tests.rs')
0 files changed, 0 insertions, 0 deletions