@@ -732,19 +732,19 @@ pub fn ensure_sufficient_stack<R>(f: impl FnOnce() -> R) -> R {
732732/// Context that provides information local to a place under investigation.
733733#[ derive( derivative:: Derivative ) ]
734734#[ derivative( Debug ( bound = "" ) , Clone ( bound = "" ) , Copy ( bound = "" ) ) ]
735- pub ( crate ) struct PlaceCtxt < ' a , ' p , Cx : TypeCx > {
735+ pub ( crate ) struct PlaceCtxt < ' a , Cx : TypeCx > {
736736 #[ derivative( Debug = "ignore" ) ]
737- pub ( crate ) mcx : MatchCtxt < ' a , ' p , Cx > ,
737+ pub ( crate ) mcx : MatchCtxt < ' a , Cx > ,
738738 /// Type of the place under investigation.
739739 pub ( crate ) ty : Cx :: Ty ,
740740 /// Whether the place is the original scrutinee place, as opposed to a subplace of it.
741741 pub ( crate ) is_scrutinee : bool ,
742742}
743743
744- impl < ' a , ' p , Cx : TypeCx > PlaceCtxt < ' a , ' p , Cx > {
744+ impl < ' a , Cx : TypeCx > PlaceCtxt < ' a , Cx > {
745745 /// A `PlaceCtxt` when code other than `is_useful` needs one.
746746 #[ cfg_attr( not( feature = "rustc" ) , allow( dead_code) ) ]
747- pub ( crate ) fn new_dummy ( mcx : MatchCtxt < ' a , ' p , Cx > , ty : Cx :: Ty ) -> Self {
747+ pub ( crate ) fn new_dummy ( mcx : MatchCtxt < ' a , Cx > , ty : Cx :: Ty ) -> Self {
748748 PlaceCtxt { mcx, ty, is_scrutinee : false }
749749 }
750750
@@ -1067,7 +1067,7 @@ impl<'p, Cx: TypeCx> Matrix<'p, Cx> {
10671067 /// This computes `specialize(ctor, self)`. See top of the file for explanations.
10681068 fn specialize_constructor (
10691069 & self ,
1070- pcx : & PlaceCtxt < ' _ , ' p , Cx > ,
1070+ pcx : & PlaceCtxt < ' _ , Cx > ,
10711071 ctor : & Constructor < Cx > ,
10721072 ctor_is_relevant : bool ,
10731073 ) -> Matrix < ' p , Cx > {
@@ -1226,7 +1226,7 @@ impl<Cx: TypeCx> WitnessStack<Cx> {
12261226 /// pats: [(false, "foo"), _, true]
12271227 /// result: [Enum::Variant { a: (false, "foo"), b: _ }, true]
12281228 /// ```
1229- fn apply_constructor ( & mut self , pcx : & PlaceCtxt < ' _ , ' _ , Cx > , ctor : & Constructor < Cx > ) {
1229+ fn apply_constructor ( & mut self , pcx : & PlaceCtxt < ' _ , Cx > , ctor : & Constructor < Cx > ) {
12301230 let len = self . 0 . len ( ) ;
12311231 let arity = ctor. arity ( pcx) ;
12321232 let fields = self . 0 . drain ( ( len - arity) ..) . rev ( ) . collect ( ) ;
@@ -1277,7 +1277,7 @@ impl<Cx: TypeCx> WitnessMatrix<Cx> {
12771277 /// Reverses specialization by `ctor`. See the section on `unspecialize` at the top of the file.
12781278 fn apply_constructor (
12791279 & mut self ,
1280- pcx : & PlaceCtxt < ' _ , ' _ , Cx > ,
1280+ pcx : & PlaceCtxt < ' _ , Cx > ,
12811281 missing_ctors : & [ Constructor < Cx > ] ,
12821282 ctor : & Constructor < Cx > ,
12831283 report_individual_missing_ctors : bool ,
@@ -1421,7 +1421,7 @@ fn collect_overlapping_range_endpoints<'p, Cx: TypeCx>(
14211421/// This is all explained at the top of the file.
14221422#[ instrument( level = "debug" , skip( mcx, is_top_level) , ret) ]
14231423fn compute_exhaustiveness_and_usefulness < ' a , ' p , Cx : TypeCx > (
1424- mcx : MatchCtxt < ' a , ' p , Cx > ,
1424+ mcx : MatchCtxt < ' a , Cx > ,
14251425 matrix : & mut Matrix < ' p , Cx > ,
14261426 overlapping_range_endpoints : & mut Vec < OverlappingRanges < ' p , Cx > > ,
14271427 is_top_level : bool ,
@@ -1591,7 +1591,7 @@ pub struct UsefulnessReport<'p, Cx: TypeCx> {
15911591/// Computes whether a match is exhaustive and which of its arms are useful.
15921592#[ instrument( skip( cx, arms) , level = "debug" ) ]
15931593pub fn compute_match_usefulness < ' p , Cx : TypeCx > (
1594- cx : MatchCtxt < ' _ , ' p , Cx > ,
1594+ cx : MatchCtxt < ' _ , Cx > ,
15951595 arms : & [ MatchArm < ' p , Cx > ] ,
15961596 scrut_ty : Cx :: Ty ,
15971597 scrut_validity : ValidityConstraint ,
0 commit comments