Allow SliceIndex to be indexed by ranges.
This commit is contained in:
parent
a74f3fb5fc
commit
162fb713ac
10 changed files with 121 additions and 22 deletions
|
@ -160,7 +160,7 @@ impl<'cx, 'tcx> LexicalResolver<'cx, 'tcx> {
|
|||
/// empty region. The `expansion` phase will grow this larger.
|
||||
fn construct_var_data(&self) -> LexicalRegionResolutions<'tcx> {
|
||||
LexicalRegionResolutions {
|
||||
values: IndexVec::from_fn_n(
|
||||
values: IndexVec::<RegionVid, _>::from_fn_n(
|
||||
|vid| {
|
||||
let vid_universe = self.var_infos[vid].universe;
|
||||
VarValue::Empty(vid_universe)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue