@@ -731,19 +731,19 @@ pub fn ensure_sufficient_stack<R>(f: impl FnOnce() -> R) -> R {
731731/// Context that provides information local to a place under investigation.
732732#[ derive( derivative:: Derivative ) ]
733733#[ derivative( Debug ( bound = "" ) , Clone ( bound = "" ) , Copy ( bound = "" ) ) ]
734- pub ( crate ) struct PlaceCtxt < ' a , ' p , Cx : TypeCx > {
734+ pub ( crate ) struct PlaceCtxt < ' a , Cx : TypeCx > {
735735 #[ derivative( Debug = "ignore" ) ]
736- pub ( crate ) mcx : MatchCtxt < ' a , ' p , Cx > ,
736+ pub ( crate ) mcx : MatchCtxt < ' a , Cx > ,
737737 /// Type of the place under investigation.
738738 pub ( crate ) ty : Cx :: Ty ,
739739 /// Whether the place is the original scrutinee place, as opposed to a subplace of it.
740740 pub ( crate ) is_scrutinee : bool ,
741741}
742742
743- impl < ' a , ' p , Cx : TypeCx > PlaceCtxt < ' a , ' p , Cx > {
743+ impl < ' a , Cx : TypeCx > PlaceCtxt < ' a , Cx > {
744744 /// A `PlaceCtxt` when code other than `is_useful` needs one.
745745 #[ cfg_attr( not( feature = "rustc" ) , allow( dead_code) ) ]
746- pub ( crate ) fn new_dummy ( mcx : MatchCtxt < ' a , ' p , Cx > , ty : Cx :: Ty ) -> Self {
746+ pub ( crate ) fn new_dummy ( mcx : MatchCtxt < ' a , Cx > , ty : Cx :: Ty ) -> Self {
747747 PlaceCtxt { mcx, ty, is_scrutinee : false }
748748 }
749749
@@ -1056,7 +1056,7 @@ impl<'p, Cx: TypeCx> Matrix<'p, Cx> {
10561056 /// This computes `specialize(ctor, self)`. See top of the file for explanations.
10571057 fn specialize_constructor (
10581058 & self ,
1059- pcx : & PlaceCtxt < ' _ , ' p , Cx > ,
1059+ pcx : & PlaceCtxt < ' _ , Cx > ,
10601060 ctor : & Constructor < Cx > ,
10611061 ctor_is_relevant : bool ,
10621062 ) -> Matrix < ' p , Cx > {
@@ -1214,7 +1214,7 @@ impl<Cx: TypeCx> WitnessStack<Cx> {
12141214 /// pats: [(false, "foo"), _, true]
12151215 /// result: [Enum::Variant { a: (false, "foo"), b: _ }, true]
12161216 /// ```
1217- fn apply_constructor ( & mut self , pcx : & PlaceCtxt < ' _ , ' _ , Cx > , ctor : & Constructor < Cx > ) {
1217+ fn apply_constructor ( & mut self , pcx : & PlaceCtxt < ' _ , Cx > , ctor : & Constructor < Cx > ) {
12181218 let len = self . 0 . len ( ) ;
12191219 let arity = ctor. arity ( pcx) ;
12201220 let fields = self . 0 . drain ( ( len - arity) ..) . rev ( ) . collect ( ) ;
@@ -1265,7 +1265,7 @@ impl<Cx: TypeCx> WitnessMatrix<Cx> {
12651265 /// Reverses specialization by `ctor`. See the section on `unspecialize` at the top of the file.
12661266 fn apply_constructor (
12671267 & mut self ,
1268- pcx : & PlaceCtxt < ' _ , ' _ , Cx > ,
1268+ pcx : & PlaceCtxt < ' _ , Cx > ,
12691269 missing_ctors : & [ Constructor < Cx > ] ,
12701270 ctor : & Constructor < Cx > ,
12711271 report_individual_missing_ctors : bool ,
@@ -1332,7 +1332,7 @@ impl<Cx: TypeCx> WitnessMatrix<Cx> {
13321332/// This is all explained at the top of the file.
13331333#[ instrument( level = "debug" , skip( mcx, is_top_level) , ret) ]
13341334fn compute_exhaustiveness_and_usefulness < ' a , ' p , Cx : TypeCx > (
1335- mcx : MatchCtxt < ' a , ' p , Cx > ,
1335+ mcx : MatchCtxt < ' a , Cx > ,
13361336 matrix : & mut Matrix < ' p , Cx > ,
13371337 is_top_level : bool ,
13381338) -> WitnessMatrix < Cx > {
@@ -1464,7 +1464,7 @@ pub struct UsefulnessReport<'p, Cx: TypeCx> {
14641464/// Computes whether a match is exhaustive and which of its arms are useful.
14651465#[ instrument( skip( cx, arms) , level = "debug" ) ]
14661466pub fn compute_match_usefulness < ' p , Cx : TypeCx > (
1467- cx : MatchCtxt < ' _ , ' p , Cx > ,
1467+ cx : MatchCtxt < ' _ , Cx > ,
14681468 arms : & [ MatchArm < ' p , Cx > ] ,
14691469 scrut_ty : Cx :: Ty ,
14701470 scrut_validity : ValidityConstraint ,
0 commit comments