Skip to content

Commit 1b9ad13

Browse files
committed
Use existing type alias instead of manually writing it
1 parent 092e9cc commit 1b9ad13

File tree

1 file changed

+2
-4
lines changed
  • compiler/rustc_infer/src/infer

1 file changed

+2
-4
lines changed

compiler/rustc_infer/src/infer/mod.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pub use self::RegionVariableOrigin::*;
44
pub use self::SubregionOrigin::*;
55
pub use self::ValuePairs::*;
66

7-
use self::opaque_types::OpaqueTypeDecl;
7+
use self::opaque_types::OpaqueTypeMap;
88
pub(crate) use self::undo_log::{InferCtxtUndoLogs, Snapshot, UndoLog};
99

1010
use crate::traits::{self, ObligationCause, PredicateObligations, TraitEngine};
@@ -14,7 +14,6 @@ use rustc_data_structures::fx::{FxHashMap, FxHashSet};
1414
use rustc_data_structures::sync::Lrc;
1515
use rustc_data_structures::undo_log::Rollback;
1616
use rustc_data_structures::unify as ut;
17-
use rustc_data_structures::vec_map::VecMap;
1817
use rustc_errors::DiagnosticBuilder;
1918
use rustc_hir as hir;
2019
use rustc_hir::def_id::{DefId, LocalDefId};
@@ -28,7 +27,6 @@ use rustc_middle::ty::fold::{TypeFoldable, TypeFolder};
2827
use rustc_middle::ty::relate::RelateResult;
2928
use rustc_middle::ty::subst::{GenericArg, GenericArgKind, InternalSubsts, SubstsRef};
3029
pub use rustc_middle::ty::IntVarValue;
31-
use rustc_middle::ty::OpaqueTypeKey;
3230
use rustc_middle::ty::{self, GenericParamDefKind, InferConst, Ty, TyCtxt};
3331
use rustc_middle::ty::{ConstVid, FloatVid, IntVid, TyVid};
3432
use 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

Comments
 (0)