about summary refs log tree commit diff
path: root/compiler/rustc_pattern_analysis/src/constructor.rs
diff options
context:
space:
mode:
authorLaurențiu Nicola <lnicola@dend.ro>2025-01-20 11:09:36 +0200
committerLaurențiu Nicola <lnicola@dend.ro>2025-01-20 11:09:36 +0200
commit4cf9f491aaeb1e92fb0c00952379a984185445b6 (patch)
treec18688f922a2031796ffa0533f44cb512dde0821 /compiler/rustc_pattern_analysis/src/constructor.rs
parentb81474b7227e1c37fb916610ed4858d2d7448373 (diff)
parent9a1d156f38c51441ee51e5a068f1d0caf4bb0f27 (diff)
downloadrust-4cf9f491aaeb1e92fb0c00952379a984185445b6.tar.gz
rust-4cf9f491aaeb1e92fb0c00952379a984185445b6.zip
Merge from rust-lang/rust
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/constructor.rs')
-rw-r--r--compiler/rustc_pattern_analysis/src/constructor.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_pattern_analysis/src/constructor.rs b/compiler/rustc_pattern_analysis/src/constructor.rs
index 8fce4266345..4ce868f014f 100644
--- a/compiler/rustc_pattern_analysis/src/constructor.rs
+++ b/compiler/rustc_pattern_analysis/src/constructor.rs
@@ -182,7 +182,7 @@ use std::iter::once;
 
 use rustc_apfloat::ieee::{DoubleS, HalfS, IeeeFloat, QuadS, SingleS};
 use rustc_index::IndexVec;
-use rustc_index::bit_set::{BitSet, GrowableBitSet};
+use rustc_index::bit_set::{DenseBitSet, GrowableBitSet};
 use smallvec::SmallVec;
 
 use self::Constructor::*;
@@ -1072,7 +1072,7 @@ impl<Cx: PatCx> ConstructorSet<Cx> {
                 }
             }
             ConstructorSet::Variants { variants, non_exhaustive } => {
-                let mut seen_set = BitSet::new_empty(variants.len());
+                let mut seen_set = DenseBitSet::new_empty(variants.len());
                 for idx in seen.iter().filter_map(|c| c.as_variant()) {
                     seen_set.insert(idx);
                 }