@@ -4,7 +4,7 @@ pub use self::RegionVariableOrigin::*;
44pub use self :: SubregionOrigin :: * ;
55pub use self :: ValuePairs :: * ;
66
7- use self :: opaque_types:: OpaqueTypeDecl ;
7+ use self :: opaque_types:: OpaqueTypeMap ;
88pub ( crate ) use self :: undo_log:: { InferCtxtUndoLogs , Snapshot , UndoLog } ;
99
1010use crate :: traits:: { self , ObligationCause , PredicateObligations , TraitEngine } ;
@@ -14,7 +14,6 @@ use rustc_data_structures::fx::{FxHashMap, FxHashSet};
1414use rustc_data_structures:: sync:: Lrc ;
1515use rustc_data_structures:: undo_log:: Rollback ;
1616use rustc_data_structures:: unify as ut;
17- use rustc_data_structures:: vec_map:: VecMap ;
1817use rustc_errors:: DiagnosticBuilder ;
1918use rustc_hir as hir;
2019use rustc_hir:: def_id:: { DefId , LocalDefId } ;
@@ -28,7 +27,6 @@ use rustc_middle::ty::fold::{TypeFoldable, TypeFolder};
2827use rustc_middle:: ty:: relate:: RelateResult ;
2928use rustc_middle:: ty:: subst:: { GenericArg , GenericArgKind , InternalSubsts , SubstsRef } ;
3029pub use rustc_middle:: ty:: IntVarValue ;
31- use rustc_middle:: ty:: OpaqueTypeKey ;
3230use rustc_middle:: ty:: { self , GenericParamDefKind , InferConst , Ty , TyCtxt } ;
3331use rustc_middle:: ty:: { ConstVid , FloatVid , IntVid , TyVid } ;
3432use rustc_session:: config:: BorrowckMode ;
@@ -201,7 +199,7 @@ pub struct InferCtxtInner<'tcx> {
201199 // associated fresh inference variable. Writeback resolves these
202200 // variables to get the concrete type, which can be used to
203201 // 'de-opaque' OpaqueTypeDecl, after typeck is done with all functions.
204- pub opaque_types : VecMap < OpaqueTypeKey < ' tcx > , OpaqueTypeDecl < ' tcx > > ,
202+ pub opaque_types : OpaqueTypeMap < ' tcx > ,
205203
206204 /// A map from inference variables created from opaque
207205 /// type instantiations (`ty::Infer`) to the actual opaque
0 commit comments