File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
rustc_hir_analysis/src/coherence Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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) ;
You can’t perform that action at this time.
0 commit comments