@@ -16,7 +16,7 @@ use std::{env, fs, str};
1616
1717use serde_derive:: Deserialize ;
1818#[ cfg( feature = "tracing" ) ]
19- use tracing:: { instrument , span} ;
19+ use tracing:: span;
2020
2121use crate :: core:: build_steps:: gcc:: { Gcc , add_cg_gcc_cargo_flags} ;
2222use crate :: core:: build_steps:: tool:: { RustcPrivateCompilers , SourceType , copy_lld_artifacts} ;
@@ -104,7 +104,6 @@ impl Step for Std {
104104 run. crate_or_deps ( "sysroot" ) . path ( "library" )
105105 }
106106
107- #[ cfg_attr( feature = "tracing" , instrument( level = "trace" , name = "Std::make_run" , skip_all) ) ]
108107 fn make_run ( run : RunConfig < ' _ > ) {
109108 let crates = std_crates_for_run_make ( & run) ;
110109 let builder = run. builder ;
@@ -135,19 +134,6 @@ impl Step for Std {
135134 /// This will build the standard library for a particular stage of the build
136135 /// using the `compiler` targeting the `target` architecture. The artifacts
137136 /// created will also be linked into the sysroot directory.
138- #[ cfg_attr(
139- feature = "tracing" ,
140- instrument(
141- level = "debug" ,
142- name = "Std::run" ,
143- skip_all,
144- fields(
145- target = ?self . target,
146- compiler = ?self . compiler,
147- force_recompile = self . force_recompile
148- ) ,
149- ) ,
150- ) ]
151137 fn run ( self , builder : & Builder < ' _ > ) {
152138 let target = self . target ;
153139
@@ -711,19 +697,6 @@ impl Step for StdLink {
711697 /// Note that this assumes that `compiler` has already generated the libstd
712698 /// libraries for `target`, and this method will find them in the relevant
713699 /// output directory.
714- #[ cfg_attr(
715- feature = "tracing" ,
716- instrument(
717- level = "trace" ,
718- name = "StdLink::run" ,
719- skip_all,
720- fields(
721- compiler = ?self . compiler,
722- target_compiler = ?self . target_compiler,
723- target = ?self . target
724- ) ,
725- ) ,
726- ) ]
727700 fn run ( self , builder : & Builder < ' _ > ) {
728701 let compiler = self . compiler ;
729702 let target_compiler = self . target_compiler ;
@@ -889,15 +862,6 @@ impl Step for StartupObjects {
889862 /// They don't require any library support as they're just plain old object
890863 /// files, so we just use the nightly snapshot compiler to always build them (as
891864 /// no other compilers are guaranteed to be available).
892- #[ cfg_attr(
893- feature = "tracing" ,
894- instrument(
895- level = "trace" ,
896- name = "StartupObjects::run" ,
897- skip_all,
898- fields( compiler = ?self . compiler, target = ?self . target) ,
899- ) ,
900- ) ]
901865 fn run ( self , builder : & Builder < ' _ > ) -> Vec < ( PathBuf , DependencyType ) > {
902866 let for_compiler = self . compiler ;
903867 let target = self . target ;
@@ -1027,15 +991,6 @@ impl Step for Rustc {
1027991 /// This will build the compiler for a particular stage of the build using
1028992 /// the `build_compiler` targeting the `target` architecture. The artifacts
1029993 /// created will also be linked into the sysroot directory.
1030- #[ cfg_attr(
1031- feature = "tracing" ,
1032- instrument(
1033- level = "debug" ,
1034- name = "Rustc::run" ,
1035- skip_all,
1036- fields( previous_compiler = ?self . build_compiler, target = ?self . target) ,
1037- ) ,
1038- ) ]
1039994 fn run ( self , builder : & Builder < ' _ > ) -> u32 {
1040995 let build_compiler = self . build_compiler ;
1041996 let target = self . target ;
@@ -1511,19 +1466,6 @@ impl Step for RustcLink {
15111466 }
15121467
15131468 /// Same as `std_link`, only for librustc
1514- #[ cfg_attr(
1515- feature = "tracing" ,
1516- instrument(
1517- level = "trace" ,
1518- name = "RustcLink::run" ,
1519- skip_all,
1520- fields(
1521- compiler = ?self . compiler,
1522- previous_stage_compiler = ?self . previous_stage_compiler,
1523- target = ?self . target,
1524- ) ,
1525- ) ,
1526- ) ]
15271469 fn run ( self , builder : & Builder < ' _ > ) {
15281470 let compiler = self . compiler ;
15291471 let previous_stage_compiler = self . previous_stage_compiler ;
@@ -1556,17 +1498,6 @@ impl Step for GccCodegenBackend {
15561498 } ) ;
15571499 }
15581500
1559- #[ cfg_attr(
1560- feature = "tracing" ,
1561- instrument(
1562- level = "debug" ,
1563- name = "GccCodegenBackend::run" ,
1564- skip_all,
1565- fields(
1566- compilers = ?self . compilers,
1567- ) ,
1568- ) ,
1569- ) ]
15701501 fn run ( self , builder : & Builder < ' _ > ) -> Self :: Output {
15711502 let target = self . compilers . target ( ) ;
15721503 let build_compiler = self . compilers . build_compiler ( ) ;
@@ -1641,17 +1572,6 @@ impl Step for CraneliftCodegenBackend {
16411572 } ) ;
16421573 }
16431574
1644- #[ cfg_attr(
1645- feature = "tracing" ,
1646- instrument(
1647- level = "debug" ,
1648- name = "CraneliftCodegenBackend::run" ,
1649- skip_all,
1650- fields(
1651- compilers = ?self . compilers,
1652- ) ,
1653- ) ,
1654- ) ]
16551575 fn run ( self , builder : & Builder < ' _ > ) -> Self :: Output {
16561576 let target = self . compilers . target ( ) ;
16571577 let build_compiler = self . compilers . build_compiler ( ) ;
@@ -1816,15 +1736,6 @@ impl Step for Sysroot {
18161736 /// Returns the sysroot that `compiler` is supposed to use.
18171737 /// For the stage0 compiler, this is stage0-sysroot (because of the initial std build).
18181738 /// For all other stages, it's the same stage directory that the compiler lives in.
1819- #[ cfg_attr(
1820- feature = "tracing" ,
1821- instrument(
1822- level = "debug" ,
1823- name = "Sysroot::run" ,
1824- skip_all,
1825- fields( compiler = ?self . compiler) ,
1826- ) ,
1827- ) ]
18281739 fn run ( self , builder : & Builder < ' _ > ) -> PathBuf {
18291740 let compiler = self . compiler ;
18301741 let host_dir = builder. out . join ( compiler. host ) ;
@@ -2000,15 +1911,6 @@ impl Step for Assemble {
20001911 /// This will assemble a compiler in `build/$host/stage$stage`. The compiler
20011912 /// must have been previously produced by the `stage - 1` builder.build
20021913 /// compiler.
2003- #[ cfg_attr(
2004- feature = "tracing" ,
2005- instrument(
2006- level = "debug" ,
2007- name = "Assemble::run" ,
2008- skip_all,
2009- fields( target_compiler = ?self . target_compiler) ,
2010- ) ,
2011- ) ]
20121914 fn run ( self , builder : & Builder < ' _ > ) -> Compiler {
20131915 let target_compiler = self . target_compiler ;
20141916
0 commit comments