Skip to content

Commit

Permalink
Use re-exported Idx and IndexVec in pat_analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
lnicola committed Jul 16, 2024
1 parent a3d6efc commit 3e73272
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 3e73272

Please sign in to comment.