Skip to content

Commit 4a0f81f

Browse files
committed
WIP: always enable -Ztime-passes
1 parent c583fa6 commit 4a0f81f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

compiler/rustc_session/src/session.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,10 +1121,7 @@ pub fn build_session(
11211121
Arc::new(SearchPath::from_sysroot_and_triple(&sysroot, target_triple))
11221122
};
11231123

1124-
let prof = SelfProfilerRef::new(
1125-
self_profiler,
1126-
sopts.unstable_opts.time_passes.then(|| sopts.unstable_opts.time_passes_format),
1127-
);
1124+
let prof = SelfProfilerRef::new(self_profiler, Some(sopts.unstable_opts.time_passes_format));
11281125

11291126
let ctfe_backtrace = Lock::new(match env::var("RUSTC_CTFE_BACKTRACE") {
11301127
Ok(ref val) if val == "immediate" => CtfeBacktrace::Immediate,

0 commit comments

Comments
 (0)