File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 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 {
561561}
562562
563563impl 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
You can’t perform that action at this time.
0 commit comments