@@ -1210,7 +1210,7 @@ impl<'tcx> LateLintPass<'tcx> for TrivialConstraints {
12101210 for  & ( predicate,  span)  in  predicates. predicates  { 
12111211 // We don't actually look inside of the predicate, 
12121212 // so it is safe to skip this binder here. 
1213-  let  predicate_kind_name = match  predicate. ignore_qualifiers ( cx . tcx ) . skip_binder ( ) . kind ( )  { 
1213+  let  predicate_kind_name = match  predicate. ignore_qualifiers ( ) . skip_binder ( ) . kind ( )  { 
12141214 Trait ( ..)  => "Trait" , 
12151215 TypeOutlives ( ..)  |
12161216 RegionOutlives ( ..)  => "Lifetime" , 
@@ -1495,13 +1495,12 @@ declare_lint_pass!(ExplicitOutlivesRequirements => [EXPLICIT_OUTLIVES_REQUIREMEN
14951495
14961496impl  ExplicitOutlivesRequirements  { 
14971497 fn  lifetimes_outliving_lifetime < ' tcx > ( 
1498-  tcx :  TyCtxt < ' tcx > , 
14991498 inferred_outlives :  & ' tcx  [ ( ty:: Predicate < ' tcx > ,  Span ) ] , 
15001499 index :  u32 , 
15011500 )  -> Vec < ty:: Region < ' tcx > >  { 
15021501 inferred_outlives
15031502 . iter ( ) 
1504-  . filter_map ( |( pred,  _) | match  pred. ignore_qualifiers ( tcx ) . skip_binder ( ) . kind ( )  { 
1503+  . filter_map ( |( pred,  _) | match  pred. ignore_qualifiers ( ) . skip_binder ( ) . kind ( )  { 
15051504 & ty:: PredicateKind :: RegionOutlives ( ty:: OutlivesPredicate ( a,  b) )  => match  a { 
15061505 ty:: ReEarlyBound ( ebr)  if  ebr. index  == index => Some ( b) , 
15071506 _ => None , 
@@ -1512,13 +1511,12 @@ impl ExplicitOutlivesRequirements {
15121511 } 
15131512
15141513 fn  lifetimes_outliving_type < ' tcx > ( 
1515-  tcx :  TyCtxt < ' tcx > , 
15161514 inferred_outlives :  & ' tcx  [ ( ty:: Predicate < ' tcx > ,  Span ) ] , 
15171515 index :  u32 , 
15181516 )  -> Vec < ty:: Region < ' tcx > >  { 
15191517 inferred_outlives
15201518 . iter ( ) 
1521-  . filter_map ( |( pred,  _) | match  pred. ignore_qualifiers ( tcx ) . skip_binder ( ) . kind ( )  { 
1519+  . filter_map ( |( pred,  _) | match  pred. ignore_qualifiers ( ) . skip_binder ( ) . kind ( )  { 
15221520 & ty:: PredicateKind :: TypeOutlives ( ty:: OutlivesPredicate ( a,  b) )  => { 
15231521 a. is_param ( index) . then_some ( b) 
15241522 } 
@@ -1539,10 +1537,10 @@ impl ExplicitOutlivesRequirements {
15391537
15401538 match  param. kind  { 
15411539 hir:: GenericParamKind :: Lifetime  {  .. }  => { 
1542-  Self :: lifetimes_outliving_lifetime ( tcx ,   inferred_outlives,  index) 
1540+  Self :: lifetimes_outliving_lifetime ( inferred_outlives,  index) 
15431541 } 
15441542 hir:: GenericParamKind :: Type  {  .. }  => { 
1545-  Self :: lifetimes_outliving_type ( tcx ,   inferred_outlives,  index) 
1543+  Self :: lifetimes_outliving_type ( inferred_outlives,  index) 
15461544 } 
15471545 hir:: GenericParamKind :: Const  {  .. }  => Vec :: new ( ) , 
15481546 } 
@@ -1694,11 +1692,7 @@ impl<'tcx> LateLintPass<'tcx> for ExplicitOutlivesRequirements {
16941692 cx. tcx . named_region ( predicate. lifetime . hir_id ) 
16951693 { 
16961694 ( 
1697-  Self :: lifetimes_outliving_lifetime ( 
1698-  cx. tcx , 
1699-  inferred_outlives, 
1700-  index, 
1701-  ) , 
1695+  Self :: lifetimes_outliving_lifetime ( inferred_outlives,  index) , 
17021696 & predicate. bounds , 
17031697 predicate. span , 
17041698 ) 
@@ -1714,11 +1708,7 @@ impl<'tcx> LateLintPass<'tcx> for ExplicitOutlivesRequirements {
17141708 if  let  Res :: Def ( DefKind :: TyParam ,  def_id)  = path. res  { 
17151709 let  index = ty_generics. param_def_id_to_index [ & def_id] ; 
17161710 ( 
1717-  Self :: lifetimes_outliving_type ( 
1718-  cx. tcx , 
1719-  inferred_outlives, 
1720-  index, 
1721-  ) , 
1711+  Self :: lifetimes_outliving_type ( inferred_outlives,  index) , 
17221712 & predicate. bounds , 
17231713 predicate. span , 
17241714 ) 
0 commit comments