@@ -4,7 +4,7 @@ pub use self::RegionVariableOrigin::*;
4
4
pub use self :: SubregionOrigin :: * ;
5
5
pub use self :: ValuePairs :: * ;
6
6
7
- use self :: opaque_types:: OpaqueTypeDecl ;
7
+ use self :: opaque_types:: OpaqueTypeMap ;
8
8
pub ( crate ) use self :: undo_log:: { InferCtxtUndoLogs , Snapshot , UndoLog } ;
9
9
10
10
use crate :: traits:: { self , ObligationCause , PredicateObligations , TraitEngine } ;
@@ -14,7 +14,6 @@ use rustc_data_structures::fx::{FxHashMap, FxHashSet};
14
14
use rustc_data_structures:: sync:: Lrc ;
15
15
use rustc_data_structures:: undo_log:: Rollback ;
16
16
use rustc_data_structures:: unify as ut;
17
- use rustc_data_structures:: vec_map:: VecMap ;
18
17
use rustc_errors:: DiagnosticBuilder ;
19
18
use rustc_hir as hir;
20
19
use rustc_hir:: def_id:: { DefId , LocalDefId } ;
@@ -28,7 +27,6 @@ use rustc_middle::ty::fold::{TypeFoldable, TypeFolder};
28
27
use rustc_middle:: ty:: relate:: RelateResult ;
29
28
use rustc_middle:: ty:: subst:: { GenericArg , GenericArgKind , InternalSubsts , SubstsRef } ;
30
29
pub use rustc_middle:: ty:: IntVarValue ;
31
- use rustc_middle:: ty:: OpaqueTypeKey ;
32
30
use rustc_middle:: ty:: { self , GenericParamDefKind , InferConst , Ty , TyCtxt } ;
33
31
use rustc_middle:: ty:: { ConstVid , FloatVid , IntVid , TyVid } ;
34
32
use rustc_session:: config:: BorrowckMode ;
@@ -201,7 +199,7 @@ pub struct InferCtxtInner<'tcx> {
201
199
// associated fresh inference variable. Writeback resolves these
202
200
// variables to get the concrete type, which can be used to
203
201
// '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 > ,
205
203
206
204
/// A map from inference variables created from opaque
207
205
/// type instantiations (`ty::Infer`) to the actual opaque
0 commit comments