diff options
| author | Jason Newcomb <jsnewcomb@pm.me> | 2025-02-21 16:01:19 -0500 |
|---|---|---|
| committer | Jason Newcomb <jsnewcomb@pm.me> | 2025-02-21 16:10:31 -0500 |
| commit | 162fb713ac66fef8f6a1d14bae9d1d4b35f76411 (patch) | |
| tree | 33ef24f64b9607373c6eb6a9686e39797f96dbfe /compiler/rustc_infer | |
| parent | a74f3fb5fc955fe3876fa206ce2146cd355e1bb5 (diff) | |
| download | rust-162fb713ac66fef8f6a1d14bae9d1d4b35f76411.tar.gz rust-162fb713ac66fef8f6a1d14bae9d1d4b35f76411.zip | |
Allow SliceIndex to be indexed by ranges.
Diffstat (limited to 'compiler/rustc_infer')
| -rw-r--r-- | compiler/rustc_infer/src/infer/lexical_region_resolve/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_infer/src/infer/lexical_region_resolve/mod.rs b/compiler/rustc_infer/src/infer/lexical_region_resolve/mod.rs index e454a88e847..03c4614af13 100644 --- a/compiler/rustc_infer/src/infer/lexical_region_resolve/mod.rs +++ b/compiler/rustc_infer/src/infer/lexical_region_resolve/mod.rs @@ -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) |
