mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 21:54:42 +00:00
Use re-exported Idx and IndexVec in pat_analysis
This commit is contained in:
parent
ffbc5ad993
commit
5f9ce1dcd4
1 changed files with 2 additions and 3 deletions
|
@ -4,11 +4,10 @@ use std::fmt;
|
|||
|
||||
use hir_def::{DefWithBodyId, EnumId, EnumVariantId, HasModule, LocalFieldId, ModuleId, VariantId};
|
||||
use once_cell::unsync::Lazy;
|
||||
use rustc_index::IndexVec;
|
||||
use rustc_pattern_analysis::{
|
||||
constructor::{Constructor, ConstructorSet, VariantVisibility},
|
||||
usefulness::{compute_match_usefulness, PlaceValidity, UsefulnessReport},
|
||||
Captures, PatCx, PrivateUninhabitedField,
|
||||
Captures, IndexVec, PatCx, PrivateUninhabitedField,
|
||||
};
|
||||
use smallvec::{smallvec, SmallVec};
|
||||
use stdx::never;
|
||||
|
@ -53,7 +52,7 @@ impl EnumVariantContiguousIndex {
|
|||
}
|
||||
}
|
||||
|
||||
impl rustc_index::Idx for EnumVariantContiguousIndex {
|
||||
impl rustc_pattern_analysis::Idx for EnumVariantContiguousIndex {
|
||||
fn new(idx: usize) -> Self {
|
||||
EnumVariantContiguousIndex(idx)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue