about summary refs log tree commit diff
path: root/compiler/rustc_mir/src/transform/coverage/mod.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-04-09 13:52:56 +0000
committerbors <bors@rust-lang.org>2021-04-09 13:52:56 +0000
commite43c2005f250b51e24d294da0b228e0a2dc4d9b2 (patch)
treedbafdf673487f14363822e9ed00e412510a96916 /compiler/rustc_mir/src/transform/coverage/mod.rs
parentbc66b92f7f1114a78b98504a927ca9c0aa12c71a (diff)
parentf67103b9b26f9e8dfea1c6f144cc003e380060a5 (diff)
downloadrust-e43c2005f250b51e24d294da0b228e0a2dc4d9b2.tar.gz
rust-e43c2005f250b51e24d294da0b228e0a2dc4d9b2.zip
Auto merge of #84030 - jyn514:no-blanket-impls, r=GuillaumeGomez
rustdoc: Don't generate blanket impls when running --show-coverage

`get_blanket_impls` is the slowest part of rustdoc, and the coverage pass
completely ignores blanket impls. This stops running it at all, and also
removes some unnecessary checks in `calculate_doc_coverage` that ignored
the impl anyway.

We don't currently measure --show-coverage in perf.rlo, but I tested
this locally on cargo and it brought the time down from 2.9 to 1.6
seconds.

This also adds back a commented-out test; Rustdoc has been able to deal with `impl trait` for almost a year now.

r? `@GuillaumeGomez`
Diffstat (limited to 'compiler/rustc_mir/src/transform/coverage/mod.rs')
0 files changed, 0 insertions, 0 deletions