-Z time-llvm-passes prints info on incremental builds while doing non incremental builds

334b719
Opened by Matthias Krüger at 2020-04-20 22:13:29

This is kind of weird, when building with CARGO_INCREMENTAL=0 RUSTFLAGS="-Z time-passes -Z time-llvm-passes" in release mode, rustc will still print

warning: The output of `-Z time-llvm-passes` will only reflect timings of re-translated modules when used with incremental compilation

while building a crate, although incremental build is explicitly disabled. Why is it doing that?

rustc 1.25.0-nightly (3d292b793 2018-02-03)
cargo 0.26.0-nightly (1d6dfea44 2018-01-26)