@@ -329,6 +329,9 @@ impl<'a, 'tcx> Implicator<'a, 'tcx> {
329
329
fn accumulate_from_assoc_types_transitive ( & mut self ,
330
330
data : & ty:: PolyTraitPredicate < ' tcx > )
331
331
{
332
+ debug ! ( "accumulate_from_assoc_types_transitive({})" ,
333
+ data. repr( self . tcx( ) ) ) ;
334
+
332
335
for poly_trait_ref in traits:: supertraits ( self . tcx ( ) , data. to_poly_trait_ref ( ) ) {
333
336
match ty:: no_late_bound_regions ( self . tcx ( ) , & poly_trait_ref) {
334
337
Some ( trait_ref) => { self . accumulate_from_assoc_types ( trait_ref) ; }
@@ -340,13 +343,18 @@ impl<'a, 'tcx> Implicator<'a, 'tcx> {
340
343
fn accumulate_from_assoc_types ( & mut self ,
341
344
trait_ref : Rc < ty:: TraitRef < ' tcx > > )
342
345
{
346
+ debug ! ( "accumulate_from_assoc_types({})" ,
347
+ trait_ref. repr( self . tcx( ) ) ) ;
348
+
343
349
let trait_def_id = trait_ref. def_id ;
344
350
let trait_def = ty:: lookup_trait_def ( self . tcx ( ) , trait_def_id) ;
345
351
let assoc_type_projections: Vec < _ > =
346
352
trait_def. associated_type_names
347
353
. iter ( )
348
354
. map ( |& name| ty:: mk_projection ( self . tcx ( ) , trait_ref. clone ( ) , name) )
349
355
. collect ( ) ;
356
+ debug ! ( "accumulate_from_assoc_types: assoc_type_projections={}" ,
357
+ assoc_type_projections. repr( self . tcx( ) ) ) ;
350
358
let tys = match self . fully_normalize ( & assoc_type_projections) {
351
359
Ok ( tys) => { tys }
352
360
Err ( ErrorReported ) => { return ; }
0 commit comments