@@ -25,7 +25,7 @@ use super::StructurallyRelateAliases;
25
25
use super :: { RelateResult , TypeRelation } ;
26
26
use crate :: infer:: relate;
27
27
use crate :: infer:: { DefineOpaqueTypes , InferCtxt , TypeTrace } ;
28
- use crate :: traits:: { Obligation , PredicateObligations } ;
28
+ use crate :: traits:: { Obligation , PredicateObligation } ;
29
29
use rustc_middle:: bug;
30
30
use rustc_middle:: infer:: unify_key:: EffectVarValue ;
31
31
use rustc_middle:: ty:: error:: { ExpectedFound , TypeError } ;
@@ -38,7 +38,7 @@ pub struct CombineFields<'infcx, 'tcx> {
38
38
pub infcx : & ' infcx InferCtxt < ' tcx > ,
39
39
pub trace : TypeTrace < ' tcx > ,
40
40
pub param_env : ty:: ParamEnv < ' tcx > ,
41
- pub obligations : PredicateObligations < ' tcx > ,
41
+ pub obligations : Vec < PredicateObligation < ' tcx > > ,
42
42
pub define_opaque_types : DefineOpaqueTypes ,
43
43
}
44
44
@@ -290,7 +290,7 @@ impl<'infcx, 'tcx> CombineFields<'infcx, 'tcx> {
290
290
Glb :: new ( self )
291
291
}
292
292
293
- pub fn register_obligations ( & mut self , obligations : PredicateObligations < ' tcx > ) {
293
+ pub fn register_obligations ( & mut self , obligations : Vec < PredicateObligation < ' tcx > > ) {
294
294
self . obligations . extend ( obligations) ;
295
295
}
296
296
@@ -315,7 +315,7 @@ pub trait ObligationEmittingRelation<'tcx>: TypeRelation<TyCtxt<'tcx>> {
315
315
fn structurally_relate_aliases ( & self ) -> StructurallyRelateAliases ;
316
316
317
317
/// Register obligations that must hold in order for this relation to hold
318
- fn register_obligations ( & mut self , obligations : PredicateObligations < ' tcx > ) ;
318
+ fn register_obligations ( & mut self , obligations : Vec < PredicateObligation < ' tcx > > ) ;
319
319
320
320
/// Register predicates that must hold in order for this relation to hold. Uses
321
321
/// a default obligation cause, [`ObligationEmittingRelation::register_obligations`] should
0 commit comments