Skip to content

Commit b0dc15c

Browse files
committed
Reduce output spam
1 parent 6667682 commit b0dc15c

File tree

2 files changed

+6
-6
lines changed
  • compiler
    • rustc_codegen_llvm/src
    • rustc_hir_analysis/src/coherence

2 files changed

+6
-6
lines changed

compiler/rustc_codegen_llvm/src/lib.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -361,12 +361,12 @@ impl CodegenBackend for LlvmCodegenBackend {
361361
.expect("Expected LlvmCodegenBackend's OngoingCodegen, found Box<Any>")
362362
.join(sess);
363363

364-
sess.time("llvm_dump_timing_file", || {
365-
if sess.opts.unstable_opts.llvm_time_trace {
364+
if sess.opts.unstable_opts.llvm_time_trace {
365+
sess.time("llvm_dump_timing_file", || {
366366
let file_name = outputs.with_extension("llvm_timings.json");
367367
llvm_util::time_trace_profiler_finish(&file_name);
368-
}
369-
});
368+
});
369+
}
370370

371371
Ok((codegen_results, work_products))
372372
}

compiler/rustc_hir_analysis/src/coherence/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ fn coherent_trait(tcx: TyCtxt<'_>, def_id: DefId) {
133133
check_impl(tcx, impl_def_id, trait_ref);
134134
check_object_overlap(tcx, impl_def_id, trait_ref);
135135

136-
tcx.sess.time("unsafety_checking", || unsafety::check_item(tcx, impl_def_id));
137-
tcx.sess.time("orphan_checking", || tcx.ensure().orphan_check_impl(impl_def_id));
136+
unsafety::check_item(tcx, impl_def_id);
137+
tcx.ensure().orphan_check_impl(impl_def_id);
138138
}
139139

140140
builtin::check_trait(tcx, def_id);

0 commit comments

Comments
 (0)