@@ -16,7 +16,7 @@ use std::{env, fs, str};
16
16
17
17
use serde_derive:: Deserialize ;
18
18
#[ cfg( feature = "tracing" ) ]
19
- use tracing:: { instrument , span} ;
19
+ use tracing:: span;
20
20
21
21
use crate :: core:: build_steps:: gcc:: { Gcc , add_cg_gcc_cargo_flags} ;
22
22
use crate :: core:: build_steps:: tool:: { RustcPrivateCompilers , SourceType , copy_lld_artifacts} ;
@@ -104,7 +104,6 @@ impl Step for Std {
104
104
run. crate_or_deps ( "sysroot" ) . path ( "library" )
105
105
}
106
106
107
- #[ cfg_attr( feature = "tracing" , instrument( level = "trace" , name = "Std::make_run" , skip_all) ) ]
108
107
fn make_run ( run : RunConfig < ' _ > ) {
109
108
let crates = std_crates_for_run_make ( & run) ;
110
109
let builder = run. builder ;
@@ -135,19 +134,6 @@ impl Step for Std {
135
134
/// This will build the standard library for a particular stage of the build
136
135
/// using the `compiler` targeting the `target` architecture. The artifacts
137
136
/// 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
- ) ]
151
137
fn run ( self , builder : & Builder < ' _ > ) {
152
138
let target = self . target ;
153
139
@@ -711,19 +697,6 @@ impl Step for StdLink {
711
697
/// Note that this assumes that `compiler` has already generated the libstd
712
698
/// libraries for `target`, and this method will find them in the relevant
713
699
/// 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
- ) ]
727
700
fn run ( self , builder : & Builder < ' _ > ) {
728
701
let compiler = self . compiler ;
729
702
let target_compiler = self . target_compiler ;
@@ -889,15 +862,6 @@ impl Step for StartupObjects {
889
862
/// They don't require any library support as they're just plain old object
890
863
/// files, so we just use the nightly snapshot compiler to always build them (as
891
864
/// 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
- ) ]
901
865
fn run ( self , builder : & Builder < ' _ > ) -> Vec < ( PathBuf , DependencyType ) > {
902
866
let for_compiler = self . compiler ;
903
867
let target = self . target ;
@@ -1027,15 +991,6 @@ impl Step for Rustc {
1027
991
/// This will build the compiler for a particular stage of the build using
1028
992
/// the `build_compiler` targeting the `target` architecture. The artifacts
1029
993
/// 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
- ) ]
1039
994
fn run ( self , builder : & Builder < ' _ > ) -> u32 {
1040
995
let build_compiler = self . build_compiler ;
1041
996
let target = self . target ;
@@ -1511,19 +1466,6 @@ impl Step for RustcLink {
1511
1466
}
1512
1467
1513
1468
/// 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
- ) ]
1527
1469
fn run ( self , builder : & Builder < ' _ > ) {
1528
1470
let compiler = self . compiler ;
1529
1471
let previous_stage_compiler = self . previous_stage_compiler ;
@@ -1556,17 +1498,6 @@ impl Step for GccCodegenBackend {
1556
1498
} ) ;
1557
1499
}
1558
1500
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
- ) ]
1570
1501
fn run ( self , builder : & Builder < ' _ > ) -> Self :: Output {
1571
1502
let target = self . compilers . target ( ) ;
1572
1503
let build_compiler = self . compilers . build_compiler ( ) ;
@@ -1641,17 +1572,6 @@ impl Step for CraneliftCodegenBackend {
1641
1572
} ) ;
1642
1573
}
1643
1574
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
- ) ]
1655
1575
fn run ( self , builder : & Builder < ' _ > ) -> Self :: Output {
1656
1576
let target = self . compilers . target ( ) ;
1657
1577
let build_compiler = self . compilers . build_compiler ( ) ;
@@ -1816,15 +1736,6 @@ impl Step for Sysroot {
1816
1736
/// Returns the sysroot that `compiler` is supposed to use.
1817
1737
/// For the stage0 compiler, this is stage0-sysroot (because of the initial std build).
1818
1738
/// 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
- ) ]
1828
1739
fn run ( self , builder : & Builder < ' _ > ) -> PathBuf {
1829
1740
let compiler = self . compiler ;
1830
1741
let host_dir = builder. out . join ( compiler. host ) ;
@@ -2000,15 +1911,6 @@ impl Step for Assemble {
2000
1911
/// This will assemble a compiler in `build/$host/stage$stage`. The compiler
2001
1912
/// must have been previously produced by the `stage - 1` builder.build
2002
1913
/// 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
- ) ]
2012
1914
fn run ( self , builder : & Builder < ' _ > ) -> Compiler {
2013
1915
let target_compiler = self . target_compiler ;
2014
1916
0 commit comments