@@ -257,9 +257,13 @@ pub fn normalize_with_depth<'a, 'b, 'gcx, 'tcx, T>(
257
257
258
258
where T : TypeFoldable < ' tcx >
259
259
{
260
+ debug ! ( "normalize_with_depth(depth={}, value={:?})" , depth, value) ;
260
261
let mut normalizer = AssociatedTypeNormalizer :: new ( selcx, cause, depth) ;
261
262
let result = normalizer. fold ( value) ;
262
-
263
+ debug ! ( "normalize_with_depth: depth={} result={:?} with {} obligations" ,
264
+ depth, result, normalizer. obligations. len( ) ) ;
265
+ debug ! ( "normalize_with_depth: depth={} obligations={:?}" ,
266
+ depth, normalizer. obligations) ;
263
267
Normalized {
264
268
value : result,
265
269
obligations : normalizer. obligations ,
@@ -331,13 +335,15 @@ impl<'a, 'b, 'gcx, 'tcx> TypeFolder<'gcx, 'tcx> for AssociatedTypeNormalizer<'a,
331
335
// binder). It would be better to normalize in a
332
336
// binding-aware fashion.
333
337
334
- let Normalized { value : ty , obligations } =
338
+ let Normalized { value : normalized_ty , obligations } =
335
339
normalize_projection_type ( self . selcx ,
336
340
data. clone ( ) ,
337
341
self . cause . clone ( ) ,
338
342
self . depth ) ;
343
+ debug ! ( "AssociatedTypeNormalizer: depth={} normalized {:?} to {:?} with {} add'l obligations" ,
344
+ self . depth, ty, normalized_ty, obligations. len( ) ) ;
339
345
self . obligations . extend ( obligations) ;
340
- ty
346
+ normalized_ty
341
347
}
342
348
343
349
_ => {
0 commit comments