File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -561,7 +561,7 @@ impl LowerWithEnv for QuantifiedInlineBound {
561
561
}
562
562
563
563
impl LowerWithEnv for [ QuantifiedInlineBound ] {
564
- type Lowered = IndexSet < rust_ir :: QuantifiedInlineBound < ChalkIr > > ;
564
+ type Lowered = IndexSet < Binders < InlineBound < ChalkIr > > > ;
565
565
566
566
fn lower ( & self , env : & Env ) -> LowerResult < Self :: Lowered > {
567
567
fn trait_identifier ( bound : & InlineBound ) -> & Identifier {
@@ -571,15 +571,15 @@ impl LowerWithEnv for [QuantifiedInlineBound] {
571
571
}
572
572
}
573
573
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 ( ) ;
576
576
577
577
for b in self {
578
578
let id = env. lookup_trait ( trait_identifier ( & b. bound ) ) ?;
579
579
if env. auto_trait ( id) {
580
- auto_traits. push ( ( b, id) )
580
+ auto_traits. insert ( ( b, id) ) ;
581
581
} else {
582
- regular_traits. push ( ( b, id) )
582
+ regular_traits. insert ( ( b, id) ) ;
583
583
}
584
584
}
585
585
You can’t perform that action at this time.
0 commit comments