File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
compiler/rustc_infer/src/traits Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11use smallvec:: smallvec;
22
33use crate :: traits:: { Obligation , ObligationCause , PredicateObligation } ;
4- use rustc_data_structures:: fx:: FxHashSet ;
4+ use rustc_data_structures:: fx:: { FxHashSet , FxIndexSet } ;
55use rustc_middle:: ty:: outlives:: Component ;
66use rustc_middle:: ty:: { self , ToPredicate , TyCtxt , WithConstness } ;
77use rustc_span:: symbol:: Ident ;
@@ -297,9 +297,9 @@ pub fn transitive_bounds_that_define_assoc_type<'tcx>(
297297 tcx : TyCtxt < ' tcx > ,
298298 bounds : impl Iterator < Item = ty:: PolyTraitRef < ' tcx > > ,
299299 assoc_name : Ident ,
300- ) -> FxHashSet < ty:: PolyTraitRef < ' tcx > > {
300+ ) -> FxIndexSet < ty:: PolyTraitRef < ' tcx > > {
301301 let mut stack: Vec < _ > = bounds. collect ( ) ;
302- let mut trait_refs = FxHashSet :: default ( ) ;
302+ let mut trait_refs = FxIndexSet :: default ( ) ;
303303
304304 while let Some ( trait_ref) = stack. pop ( ) {
305305 if trait_refs. insert ( trait_ref) {
You can’t perform that action at this time.
0 commit comments