@@ -6,8 +6,8 @@ use rustc_infer::infer::InferCtxt;
6
6
use rustc_infer:: traits:: query:: NoSolution ;
7
7
use rustc_infer:: traits:: solve:: { CandidateSource , GoalSource , MaybeCause } ;
8
8
use rustc_infer:: traits:: {
9
- self , FromSolverError , FulfillmentErrorLike , MismatchedProjectionTypes , Obligation ,
10
- ObligationCause , ObligationCauseCode , PredicateObligation , SelectionError , TraitEngine ,
9
+ self , FromSolverError , MismatchedProjectionTypes , Obligation , ObligationCause ,
10
+ ObligationCauseCode , PredicateObligation , SelectionError , TraitEngine ,
11
11
} ;
12
12
use rustc_middle:: bug;
13
13
use rustc_middle:: ty:: error:: { ExpectedFound , TypeError } ;
@@ -31,7 +31,7 @@ use super::{Certainty, InferCtxtEvalExt};
31
31
///
32
32
/// It is also likely that we want to use slightly different datastructures
33
33
/// here as this will have to deal with far more root goals than `evaluate_all`.
34
- pub struct FulfillmentCtxt < ' tcx , E : FulfillmentErrorLike < ' tcx > > {
34
+ pub struct FulfillmentCtxt < ' tcx , E : ' tcx > {
35
35
obligations : ObligationStorage < ' tcx > ,
36
36
37
37
/// The snapshot in which this context was created. Using the context
@@ -93,7 +93,7 @@ impl<'tcx> ObligationStorage<'tcx> {
93
93
}
94
94
}
95
95
96
- impl < ' tcx , E : FulfillmentErrorLike < ' tcx > > FulfillmentCtxt < ' tcx , E > {
96
+ impl < ' tcx , E : ' tcx > FulfillmentCtxt < ' tcx , E > {
97
97
pub fn new ( infcx : & InferCtxt < ' tcx > ) -> FulfillmentCtxt < ' tcx , E > {
98
98
assert ! (
99
99
infcx. next_trait_solver( ) ,
@@ -123,8 +123,9 @@ impl<'tcx, E: FulfillmentErrorLike<'tcx>> FulfillmentCtxt<'tcx, E> {
123
123
}
124
124
}
125
125
126
- impl < ' tcx , E : FromSolverError < ' tcx , NextSolverError < ' tcx > > > TraitEngine < ' tcx , E >
127
- for FulfillmentCtxt < ' tcx , E >
126
+ impl < ' tcx , E > TraitEngine < ' tcx , E > for FulfillmentCtxt < ' tcx , E >
127
+ where
128
+ E : FromSolverError < ' tcx , NextSolverError < ' tcx > > ,
128
129
{
129
130
#[ instrument( level = "trace" , skip( self , infcx) ) ]
130
131
fn register_predicate_obligation (
0 commit comments