@@ -273,7 +273,7 @@ where
273273 Normalized { value, obligations }
274274}
275275
276- #[ instrument( level = "debug " , skip( selcx, param_env, cause, obligations) ) ]
276+ #[ instrument( level = "info " , skip( selcx, param_env, cause, obligations) ) ]
277277pub fn normalize_with_depth_to < ' a , ' b , ' tcx , T > (
278278 selcx : & ' a mut SelectionContext < ' b , ' tcx > ,
279279 param_env : ty:: ParamEnv < ' tcx > ,
@@ -285,6 +285,7 @@ pub fn normalize_with_depth_to<'a, 'b, 'tcx, T>(
285285where
286286 T : TypeFoldable < ' tcx > ,
287287{
288+ debug ! ( obligations. len = obligations. len( ) ) ;
288289 let mut normalizer = AssocTypeNormalizer :: new ( selcx, param_env, cause, depth, obligations) ;
289290 let result = ensure_sufficient_stack ( || normalizer. fold ( value) ) ;
290291 debug ! ( ?result, obligations. len = normalizer. obligations. len( ) ) ;
@@ -314,6 +315,7 @@ impl<'a, 'b, 'tcx> AssocTypeNormalizer<'a, 'b, 'tcx> {
314315
315316 fn fold < T : TypeFoldable < ' tcx > > ( & mut self , value : T ) -> T {
316317 let value = self . selcx . infcx ( ) . resolve_vars_if_possible ( value) ;
318+ debug ! ( ?value) ;
317319
318320 assert ! (
319321 !value. has_escaping_bound_vars( ) ,
@@ -825,7 +827,7 @@ fn opt_normalize_projection_type<'a, 'b, 'tcx>(
825827
826828 let cache_result = infcx. inner . borrow_mut ( ) . projection_cache ( ) . try_start ( cache_key) ;
827829 match cache_result {
828- Ok ( ( ) ) => { }
830+ Ok ( ( ) ) => debug ! ( "no cache" ) ,
829831 Err ( ProjectionCacheEntry :: Ambiguous ) => {
830832 // If we found ambiguity the last time, that means we will continue
831833 // to do so until some type in the key changes (and we know it
@@ -852,6 +854,7 @@ fn opt_normalize_projection_type<'a, 'b, 'tcx>(
852854 return Err ( InProgress ) ;
853855 }
854856 Err ( ProjectionCacheEntry :: Recur ) => {
857+ debug ! ( "recur cache" ) ;
855858 return Err ( InProgress ) ;
856859 }
857860 Err ( ProjectionCacheEntry :: NormalizedTy ( ty) ) => {
@@ -1058,12 +1061,11 @@ impl<'tcx> Progress<'tcx> {
10581061///
10591062/// IMPORTANT:
10601063/// - `obligation` must be fully normalized
1064+ #[ tracing:: instrument( level = "info" , skip( selcx) ) ]
10611065fn project_type < ' cx , ' tcx > (
10621066 selcx : & mut SelectionContext < ' cx , ' tcx > ,
10631067 obligation : & ProjectionTyObligation < ' tcx > ,
10641068) -> Result < ProjectedTy < ' tcx > , ProjectionTyError < ' tcx > > {
1065- debug ! ( ?obligation, "project_type" ) ;
1066-
10671069 if !selcx. tcx ( ) . recursion_limit ( ) . value_within_limit ( obligation. recursion_depth ) {
10681070 debug ! ( "project: overflow!" ) ;
10691071 // This should really be an immediate error, but some existing code
0 commit comments