@@ -25,7 +25,7 @@ use super::StructurallyRelateAliases;
2525use super :: { RelateResult , TypeRelation } ;
2626use crate :: infer:: relate;
2727use crate :: infer:: { DefineOpaqueTypes , InferCtxt , TypeTrace } ;
28- use crate :: traits:: { Obligation , PredicateObligations } ;
28+ use crate :: traits:: { Obligation , PredicateObligation } ;
2929use rustc_middle:: bug;
3030use rustc_middle:: infer:: unify_key:: EffectVarValue ;
3131use rustc_middle:: ty:: error:: { ExpectedFound , TypeError } ;
@@ -38,7 +38,7 @@ pub struct CombineFields<'infcx, 'tcx> {
3838 pub infcx : & ' infcx InferCtxt < ' tcx > ,
3939 pub trace : TypeTrace < ' tcx > ,
4040 pub param_env : ty:: ParamEnv < ' tcx > ,
41- pub obligations : PredicateObligations < ' tcx > ,
41+ pub obligations : Vec < PredicateObligation < ' tcx > > ,
4242 pub define_opaque_types : DefineOpaqueTypes ,
4343}
4444
@@ -290,7 +290,7 @@ impl<'infcx, 'tcx> CombineFields<'infcx, 'tcx> {
290290 Glb :: new ( self )
291291 }
292292
293- pub fn register_obligations ( & mut self , obligations : PredicateObligations < ' tcx > ) {
293+ pub fn register_obligations ( & mut self , obligations : Vec < PredicateObligation < ' tcx > > ) {
294294 self . obligations . extend ( obligations) ;
295295 }
296296
@@ -315,7 +315,7 @@ pub trait ObligationEmittingRelation<'tcx>: TypeRelation<TyCtxt<'tcx>> {
315315 fn structurally_relate_aliases ( & self ) -> StructurallyRelateAliases ;
316316
317317 /// 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 > > ) ;
319319
320320 /// Register predicates that must hold in order for this relation to hold. Uses
321321 /// a default obligation cause, [`ObligationEmittingRelation::register_obligations`] should
0 commit comments