We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72c573e commit 6a8956cCopy full SHA for 6a8956c
chalk-integration/src/lowering.rs
@@ -571,15 +571,15 @@ impl LowerWithEnv for [QuantifiedInlineBound] {
571
}
572
573
574
- let mut regular_traits = Vec::new();
575
- let mut auto_traits = Vec::new();
+ let mut regular_traits = IndexSet::new();
+ let mut auto_traits = IndexSet::new();
576
577
for b in self {
578
let id = env.lookup_trait(trait_identifier(&b.bound))?;
579
if env.auto_trait(id) {
580
- auto_traits.push((b, id))
+ auto_traits.insert((b, id));
581
} else {
582
- regular_traits.push((b, id))
+ regular_traits.insert((b, id));
583
584
585
0 commit comments