1
Fork 0

Change concrete opaque type to be a VecMap

This commit is contained in:
Santiago Pastorino 2021-06-04 17:02:48 -03:00
parent 2bc723fbca
commit 3405725e00
No known key found for this signature in database
GPG key ID: 8131A24E0C79EFAF
3 changed files with 7 additions and 5 deletions

View file

@ -2,6 +2,7 @@
use rustc_data_structures::fx::{FxHashMap, FxHashSet};
use rustc_data_structures::graph::dominators::Dominators;
use rustc_data_structures::vec_map::VecMap;
use rustc_errors::{Applicability, Diagnostic, DiagnosticBuilder, ErrorReported};
use rustc_hir as hir;
use rustc_hir::def_id::LocalDefId;
@ -25,7 +26,7 @@ use either::Either;
use smallvec::SmallVec;
use std::cell::RefCell;
use std::collections::BTreeMap;
use std::iter;
use std::iter::{self, FromIterator};
use std::mem;
use std::rc::Rc;
@ -441,7 +442,7 @@ fn do_mir_borrowck<'a, 'tcx>(
}
let result = BorrowCheckResult {
concrete_opaque_types: opaque_type_values,
concrete_opaque_types: VecMap::from_iter(opaque_type_values.into_iter()),
closure_requirements: opt_closure_req,
used_mut_upvars: mbcx.used_mut_upvars,
};