File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 1
- use std:: any:: Any ;
1
+ use std:: any:: { type_name , Any } ;
2
2
use std:: cell:: { Cell , RefCell } ;
3
3
use std:: collections:: BTreeSet ;
4
4
use std:: env;
@@ -1763,7 +1763,16 @@ impl<'a> Builder<'a> {
1763
1763
} ;
1764
1764
1765
1765
if self . config . print_step_timings && !self . config . dry_run {
1766
- println ! ( "[TIMING] {:?} -- {}.{:03}" , step, dur. as_secs( ) , dur. subsec_millis( ) ) ;
1766
+ let step_string = format ! ( "{:?}" , step) ;
1767
+ let brace_index = step_string. find ( "{" ) . unwrap_or ( 0 ) ;
1768
+ let type_string = type_name :: < S > ( ) ;
1769
+ println ! (
1770
+ "[TIMING] {} {} -- {}.{:03}" ,
1771
+ & type_string. strip_prefix( "bootstrap::" ) . unwrap_or( type_string) ,
1772
+ & step_string[ brace_index..] ,
1773
+ dur. as_secs( ) ,
1774
+ dur. subsec_millis( )
1775
+ ) ;
1767
1776
}
1768
1777
1769
1778
{
You can’t perform that action at this time.
0 commit comments