@@ -974,9 +974,10 @@ impl<'o, 'gcx: 'tcx, 'tcx> dyn AstConv<'gcx, 'tcx>+'o {
974974 let principal = self . instantiate_poly_trait_ref ( & trait_bounds[ 0 ] ,
975975 dummy_self,
976976 & mut projection_bounds) ;
977+ debug ! ( "principal: {:?}" , principal) ;
977978
978979 for trait_bound in trait_bounds[ 1 ..] . iter ( ) {
979- // Sanity check for non-principal trait bounds
980+ // sanity check for non-principal trait bounds
980981 self . instantiate_poly_trait_ref ( trait_bound,
981982 dummy_self,
982983 & mut vec ! [ ] ) ;
@@ -1008,9 +1009,9 @@ impl<'o, 'gcx: 'tcx, 'tcx> dyn AstConv<'gcx, 'tcx>+'o {
10081009 } )
10091010 } ) ;
10101011
1011- // check that there are no gross object safety violations,
1012+ // Check that there are no gross object safety violations;
10121013 // most importantly, that the supertraits don't contain Self,
1013- // to avoid ICE-s .
1014+ // to avoid ICEs .
10141015 let object_safety_violations =
10151016 tcx. astconv_object_safety_violations ( principal. def_id ( ) ) ;
10161017 if !object_safety_violations. is_empty ( ) {
@@ -1020,7 +1021,7 @@ impl<'o, 'gcx: 'tcx, 'tcx> dyn AstConv<'gcx, 'tcx>+'o {
10201021 return tcx. types . err ;
10211022 }
10221023
1023- // use a BTreeSet to keep output in a more consistent order
1024+ // Use a BTreeSet to keep output in a more consistent order.
10241025 let mut associated_types = BTreeSet :: default ( ) ;
10251026
10261027 for tr in traits:: supertraits ( tcx, principal) {
@@ -1059,7 +1060,7 @@ impl<'o, 'gcx: 'tcx, 'tcx> dyn AstConv<'gcx, 'tcx>+'o {
10591060 v. sort_by ( |a, b| a. stable_cmp ( tcx, b) ) ;
10601061 let existential_predicates = ty:: Binder :: bind ( tcx. mk_existential_predicates ( v. into_iter ( ) ) ) ;
10611062
1062- // Explicitly specified region bound. Use that .
1063+ // Use explicitly- specified region bound.
10631064 let region_bound = if !lifetime. is_elided ( ) {
10641065 self . ast_region_to_region ( lifetime, None )
10651066 } else {
0 commit comments