Change concrete opaque type to be a VecMap
This commit is contained in:
parent
2bc723fbca
commit
3405725e00
3 changed files with 7 additions and 5 deletions
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue