mirror of
https://github.com/openharmony/third_party_rust_rust.git
synced 2026-07-18 09:25:13 -04:00
4e8faff3a1
`print_time_passes_entry` unconditionally prints data about a pass. The most commonly used call site, in `VerboseTimingGuard::drop`, guards it with a `should_print_passes` test. But there are a couple of other call sites that don't do that test. This commit moves the `should_print_passes` test within `print_time_passes_entry` so that all passes are treated equally.