File tree 1 file changed +3
-3
lines changed
compiler/rustc_infer/src/traits
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
use smallvec:: smallvec;
2
2
3
3
use crate :: traits:: { Obligation , ObligationCause , PredicateObligation } ;
4
- use rustc_data_structures:: fx:: FxHashSet ;
4
+ use rustc_data_structures:: fx:: { FxHashSet , FxIndexSet } ;
5
5
use rustc_middle:: ty:: outlives:: Component ;
6
6
use rustc_middle:: ty:: { self , ToPredicate , TyCtxt , WithConstness } ;
7
7
use rustc_span:: symbol:: Ident ;
@@ -297,9 +297,9 @@ pub fn transitive_bounds_that_define_assoc_type<'tcx>(
297
297
tcx : TyCtxt < ' tcx > ,
298
298
bounds : impl Iterator < Item = ty:: PolyTraitRef < ' tcx > > ,
299
299
assoc_name : Ident ,
300
- ) -> FxHashSet < ty:: PolyTraitRef < ' tcx > > {
300
+ ) -> FxIndexSet < ty:: PolyTraitRef < ' tcx > > {
301
301
let mut stack: Vec < _ > = bounds. collect ( ) ;
302
- let mut trait_refs = FxHashSet :: default ( ) ;
302
+ let mut trait_refs = FxIndexSet :: default ( ) ;
303
303
304
304
while let Some ( trait_ref) = stack. pop ( ) {
305
305
if trait_refs. insert ( trait_ref) {
You can’t perform that action at this time.
0 commit comments