Skip to content

Commit 28c30d2

Browse files
committed
Another set use
1 parent 72c573e commit 28c30d2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

chalk-integration/src/lowering.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ impl LowerWithEnv for QuantifiedInlineBound {
561561
}
562562

563563
impl LowerWithEnv for [QuantifiedInlineBound] {
564-
type Lowered = IndexSet<rust_ir::QuantifiedInlineBound<ChalkIr>>;
564+
type Lowered = IndexSet<Binders<InlineBound<ChalkIr>>>;
565565

566566
fn lower(&self, env: &Env) -> LowerResult<Self::Lowered> {
567567
fn trait_identifier(bound: &InlineBound) -> &Identifier {
@@ -571,15 +571,15 @@ impl LowerWithEnv for [QuantifiedInlineBound] {
571571
}
572572
}
573573

574-
let mut regular_traits = Vec::new();
575-
let mut auto_traits = Vec::new();
574+
let mut regular_traits = IndexSet::new();
575+
let mut auto_traits = IndexSet::new();
576576

577577
for b in self {
578578
let id = env.lookup_trait(trait_identifier(&b.bound))?;
579579
if env.auto_trait(id) {
580-
auto_traits.push((b, id))
580+
auto_traits.insert((b, id));
581581
} else {
582-
regular_traits.push((b, id))
582+
regular_traits.insert((b, id));
583583
}
584584
}
585585

0 commit comments

Comments
 (0)