@@ -1523,7 +1523,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
15231523 }
15241524 }
15251525
1526- #[ tracing :: instrument( level = "debug" , skip( self ) ) ]
1526+ #[ instrument( level = "debug" , skip( self ) ) ]
15271527 fn encode_info_for_mod ( & mut self , local_def_id : LocalDefId ) {
15281528 let tcx = self . tcx ;
15291529 let def_id = local_def_id. to_def_id ( ) ;
@@ -1554,7 +1554,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
15541554 record_defaulted_array ! ( self . tables. explicit_item_bounds[ def_id] <- bounds) ;
15551555 }
15561556
1557- #[ tracing :: instrument( level = "debug" , skip( self ) ) ]
1557+ #[ instrument( level = "debug" , skip( self ) ) ]
15581558 fn encode_info_for_assoc_item ( & mut self , def_id : DefId ) {
15591559 let tcx = self . tcx ;
15601560 let item = tcx. associated_item ( def_id) ;
@@ -1648,9 +1648,8 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
16481648 }
16491649 }
16501650
1651+ #[ instrument( level = "debug" , skip( self ) ) ]
16511652 fn encode_stability ( & mut self , def_id : DefId ) {
1652- debug ! ( "EncodeContext::encode_stability({:?})" , def_id) ;
1653-
16541653 // The query lookup can take a measurable amount of time in crates with many items. Check if
16551654 // the stability attributes are even enabled before using their queries.
16561655 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> {
16601659 }
16611660 }
16621661
1662+ #[ instrument( level = "debug" , skip( self ) ) ]
16631663 fn encode_const_stability ( & mut self , def_id : DefId ) {
1664- debug ! ( "EncodeContext::encode_const_stability({:?})" , def_id) ;
1665-
16661664 // The query lookup can take a measurable amount of time in crates with many items. Check if
16671665 // the stability attributes are even enabled before using their queries.
16681666 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> {
16721670 }
16731671 }
16741672
1673+ #[ instrument( level = "debug" , skip( self ) ) ]
16751674 fn encode_default_body_stability ( & mut self , def_id : DefId ) {
1676- debug ! ( "EncodeContext::encode_default_body_stability({:?})" , def_id) ;
1677-
16781675 // The query lookup can take a measurable amount of time in crates with many items. Check if
16791676 // the stability attributes are even enabled before using their queries.
16801677 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> {
16841681 }
16851682 }
16861683
1684+ #[ instrument( level = "debug" , skip( self ) ) ]
16871685 fn encode_deprecation ( & mut self , def_id : DefId ) {
1688- debug ! ( "EncodeContext::encode_deprecation({:?})" , def_id) ;
16891686 if let Some ( depr) = self . tcx . lookup_deprecation ( def_id) {
16901687 record ! ( self . tables. lookup_deprecation_entry[ def_id] <- depr) ;
16911688 }
@@ -1699,7 +1696,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
16991696 } )
17001697 }
17011698
1702- #[ tracing :: instrument( level = "debug" , skip( self ) ) ]
1699+ #[ instrument( level = "debug" , skip( self ) ) ]
17031700 fn encode_info_for_macro ( & mut self , def_id : LocalDefId ) {
17041701 let tcx = self . tcx ;
17051702
@@ -1708,7 +1705,7 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
17081705 record ! ( self . tables. macro_definition[ def_id. to_def_id( ) ] <- & * macro_def. body) ;
17091706 }
17101707
1711- #[ tracing :: instrument( level = "debug" , skip( self ) ) ]
1708+ #[ instrument( level = "debug" , skip( self ) ) ]
17121709 fn encode_info_for_impl ( & mut self , def_id : DefId , of_trait : bool ) {
17131710 let tcx = self . tcx ;
17141711
@@ -1962,8 +1959,8 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
19621959 }
19631960
19641961 /// Encodes an index, mapping each trait to its (local) implementations.
1962+ #[ instrument( level = "debug" , skip( self ) ) ]
19651963 fn encode_impls ( & mut self ) -> LazyArray < TraitImpls > {
1966- debug ! ( "EncodeContext::encode_traits_and_impls()" ) ;
19671964 empty_proc_macro ! ( self ) ;
19681965 let tcx = self . tcx ;
19691966 let mut fx_hash_map: FxHashMap < DefId , Vec < ( DefIndex , Option < SimplifiedType > ) > > =
@@ -2011,8 +2008,8 @@ impl<'a, 'tcx> EncodeContext<'a, 'tcx> {
20112008 self . lazy_array ( & all_impls)
20122009 }
20132010
2011+ #[ instrument( level = "debug" , skip( self ) ) ]
20142012 fn encode_incoherent_impls ( & mut self ) -> LazyArray < IncoherentImpls > {
2015- debug ! ( "EncodeContext::encode_traits_and_impls()" ) ;
20162013 empty_proc_macro ! ( self ) ;
20172014 let tcx = self . tcx ;
20182015 let mut all_impls: Vec < _ > = tcx. crate_inherent_impls ( ( ) ) . incoherent_impls . iter ( ) . collect ( ) ;
0 commit comments