@@ -1523,7 +1523,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
1523
1523
}
1524
1524
}
1525
1525
1526
- #[ tracing :: instrument( level = "debug" , skip( self ) ) ]
1526
+ #[ instrument( level = "debug" , skip( self ) ) ]
1527
1527
fn encode_info_for_mod ( & mut self , local_def_id : LocalDefId ) {
1528
1528
let tcx = self . tcx ;
1529
1529
let def_id = local_def_id. to_def_id ( ) ;
@@ -1554,7 +1554,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
1554
1554
record_defaulted_array ! ( self . tables. explicit_item_bounds[ def_id] <- bounds) ;
1555
1555
}
1556
1556
1557
- #[ tracing :: instrument( level = "debug" , skip( self ) ) ]
1557
+ #[ instrument( level = "debug" , skip( self ) ) ]
1558
1558
fn encode_info_for_assoc_item ( & mut self , def_id : DefId ) {
1559
1559
let tcx = self . tcx ;
1560
1560
let item = tcx. associated_item ( def_id) ;
@@ -1648,9 +1648,8 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
1648
1648
}
1649
1649
}
1650
1650
1651
+ #[ instrument( level = "debug" , skip( self ) ) ]
1651
1652
fn encode_stability ( & mut self , def_id : DefId ) {
1652
- debug ! ( "EncodeContext::encode_stability({:?})" , def_id) ;
1653
-
1654
1653
// The query lookup can take a measurable amount of time in crates with many items. Check if
1655
1654
// the stability attributes are even enabled before using their queries.
1656
1655
if self . feat . staged_api || self . tcx . sess . opts . unstable_opts . force_unstable_if_unmarked {
@@ -1660,9 +1659,8 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
1660
1659
}
1661
1660
}
1662
1661
1662
+ #[ instrument( level = "debug" , skip( self ) ) ]
1663
1663
fn encode_const_stability ( & mut self , def_id : DefId ) {
1664
- debug ! ( "EncodeContext::encode_const_stability({:?})" , def_id) ;
1665
-
1666
1664
// The query lookup can take a measurable amount of time in crates with many items. Check if
1667
1665
// the stability attributes are even enabled before using their queries.
1668
1666
if self . feat . staged_api || self . tcx . sess . opts . unstable_opts . force_unstable_if_unmarked {
@@ -1672,9 +1670,8 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
1672
1670
}
1673
1671
}
1674
1672
1673
+ #[ instrument( level = "debug" , skip( self ) ) ]
1675
1674
fn encode_default_body_stability ( & mut self , def_id : DefId ) {
1676
- debug ! ( "EncodeContext::encode_default_body_stability({:?})" , def_id) ;
1677
-
1678
1675
// The query lookup can take a measurable amount of time in crates with many items. Check if
1679
1676
// the stability attributes are even enabled before using their queries.
1680
1677
if self . feat . staged_api || self . tcx . sess . opts . unstable_opts . force_unstable_if_unmarked {
@@ -1684,8 +1681,8 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
1684
1681
}
1685
1682
}
1686
1683
1684
+ #[ instrument( level = "debug" , skip( self ) ) ]
1687
1685
fn encode_deprecation ( & mut self , def_id : DefId ) {
1688
- debug ! ( "EncodeContext::encode_deprecation({:?})" , def_id) ;
1689
1686
if let Some ( depr) = self . tcx . lookup_deprecation ( def_id) {
1690
1687
record ! ( self . tables. lookup_deprecation_entry[ def_id] <- depr) ;
1691
1688
}
@@ -1699,7 +1696,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
1699
1696
} )
1700
1697
}
1701
1698
1702
- #[ tracing :: instrument( level = "debug" , skip( self ) ) ]
1699
+ #[ instrument( level = "debug" , skip( self ) ) ]
1703
1700
fn encode_info_for_macro ( & mut self , def_id : LocalDefId ) {
1704
1701
let tcx = self . tcx ;
1705
1702
@@ -1708,7 +1705,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
1708
1705
record ! ( self . tables. macro_definition[ def_id. to_def_id( ) ] <- & * macro_def. body) ;
1709
1706
}
1710
1707
1711
- #[ tracing :: instrument( level = "debug" , skip( self ) ) ]
1708
+ #[ instrument( level = "debug" , skip( self ) ) ]
1712
1709
fn encode_info_for_impl ( & mut self , def_id : DefId , of_trait : bool ) {
1713
1710
let tcx = self . tcx ;
1714
1711
@@ -1962,8 +1959,8 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
1962
1959
}
1963
1960
1964
1961
/// Encodes an index, mapping each trait to its (local) implementations.
1962
+ #[ instrument( level = "debug" , skip( self ) ) ]
1965
1963
fn encode_impls ( & mut self ) -> LazyArray < TraitImpls > {
1966
- debug ! ( "EncodeContext::encode_traits_and_impls()" ) ;
1967
1964
empty_proc_macro ! ( self ) ;
1968
1965
let tcx = self . tcx ;
1969
1966
let mut fx_hash_map: FxHashMap < DefId , Vec < ( DefIndex , Option < SimplifiedType > ) > > =
@@ -2011,8 +2008,8 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
2011
2008
self . lazy_array ( & all_impls)
2012
2009
}
2013
2010
2011
+ #[ instrument( level = "debug" , skip( self ) ) ]
2014
2012
fn encode_incoherent_impls ( & mut self ) -> LazyArray < IncoherentImpls > {
2015
- debug ! ( "EncodeContext::encode_traits_and_impls()" ) ;
2016
2013
empty_proc_macro ! ( self ) ;
2017
2014
let tcx = self . tcx ;
2018
2015
let mut all_impls: Vec < _ > = tcx. crate_inherent_impls ( ( ) ) . incoherent_impls . iter ( ) . collect ( ) ;
0 commit comments