|
2 | 2 | #![deny(rustc::diagnostic_outside_of_impl)]
|
3 | 3 | //! The entry point of the NLL borrow checker.
|
4 | 4 |
|
5 |
| -use rustc_data_structures::vec_map::VecMap; |
| 5 | +use rustc_data_structures::fx::FxIndexMap; |
6 | 6 | use rustc_hir::def_id::LocalDefId;
|
7 | 7 | use rustc_index::vec::IndexVec;
|
8 | 8 | use rustc_middle::mir::{create_dump_file, dump_enabled, dump_mir, PassWhere};
|
@@ -44,7 +44,7 @@ pub type PoloniusOutput = Output<RustcFacts>;
|
44 | 44 | /// closure requirements to propagate, and any generated errors.
|
45 | 45 | pub(crate) struct NllOutput<'tcx> {
|
46 | 46 | pub regioncx: RegionInferenceContext<'tcx>,
|
47 |
| - pub opaque_type_values: VecMap<LocalDefId, OpaqueHiddenType<'tcx>>, |
| 47 | + pub opaque_type_values: FxIndexMap<LocalDefId, OpaqueHiddenType<'tcx>>, |
48 | 48 | pub polonius_input: Option<Box<AllFacts>>,
|
49 | 49 | pub polonius_output: Option<Rc<PoloniusOutput>>,
|
50 | 50 | pub opt_closure_req: Option<ClosureRegionRequirements<'tcx>>,
|
@@ -377,7 +377,7 @@ pub(super) fn dump_annotation<'tcx>(
|
377 | 377 | body: &Body<'tcx>,
|
378 | 378 | regioncx: &RegionInferenceContext<'tcx>,
|
379 | 379 | closure_region_requirements: &Option<ClosureRegionRequirements<'tcx>>,
|
380 |
| - opaque_type_values: &VecMap<LocalDefId, OpaqueHiddenType<'tcx>>, |
| 380 | + opaque_type_values: &FxIndexMap<LocalDefId, OpaqueHiddenType<'tcx>>, |
381 | 381 | errors: &mut crate::error::BorrowckErrors<'tcx>,
|
382 | 382 | ) {
|
383 | 383 | let tcx = infcx.tcx;
|
|
0 commit comments