File tree 2 files changed +6
-6
lines changed
rustc_hir_analysis/src/coherence
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 {
361
361
. expect ( "Expected LlvmCodegenBackend's OngoingCodegen, found Box<Any>" )
362
362
. join ( sess) ;
363
363
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" , || {
366
366
let file_name = outputs. with_extension ( "llvm_timings.json" ) ;
367
367
llvm_util:: time_trace_profiler_finish ( & file_name) ;
368
- }
369
- } ) ;
368
+ } ) ;
369
+ }
370
370
371
371
Ok ( ( codegen_results, work_products) )
372
372
}
Original file line number Diff line number Diff line change @@ -133,8 +133,8 @@ fn coherent_trait(tcx: TyCtxt<'_>, def_id: DefId) {
133
133
check_impl ( tcx, impl_def_id, trait_ref) ;
134
134
check_object_overlap ( tcx, impl_def_id, trait_ref) ;
135
135
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) ;
138
138
}
139
139
140
140
builtin:: check_trait ( tcx, def_id) ;
You can’t perform that action at this time.
0 commit comments