diff options
| author | Noah Lev <camelidcamel@gmail.com> | 2021-10-31 21:07:32 -0700 |
|---|---|---|
| committer | Noah Lev <camelidcamel@gmail.com> | 2021-10-31 21:10:32 -0700 |
| commit | 10606c3caf42124bf5b8069647badc0cfcc31a89 (patch) | |
| tree | fe1b3a13b78813c151a2a4bb427e060aec6b484a /compiler/rustc_mir_transform/src/coverage/counters.rs | |
| parent | 4ee2d0351a67e382f56a85eaeada0b7c773f0691 (diff) | |
| download | rust-10606c3caf42124bf5b8069647badc0cfcc31a89.tar.gz rust-10606c3caf42124bf5b8069647badc0cfcc31a89.zip | |
rustdoc: Small micro-optimizations and cleanups
* Flip conjuncts of `&&` in rustdoc The `CrateNum` comparison should be very cheap, while `span.filename()` fetches and clones a `FileName`. * Use `into_local_path()` instead of `local_path().clone()`
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/counters.rs')
0 files changed, 0 insertions, 0 deletions
