Skip to content

Commit

Permalink
Use SsoHashSet
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron1011 committed Oct 30, 2021
1 parent 67da0ff commit 851f2b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/rustc_trait_selection/src/traits/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use super::{Normalized, NormalizedTy, ProjectionCacheEntry, ProjectionCacheKey};
use crate::infer::type_variable::{TypeVariableOrigin, TypeVariableOriginKind};
use crate::infer::{InferCtxt, InferOk, LateBoundRegionConversionTime};
use crate::traits::error_reporting::InferCtxtExt as _;
use rustc_data_structures::fx::FxHashSet;
use rustc_data_structures::sso::SsoHashSet;
use rustc_data_structures::stack::ensure_sufficient_stack;
use rustc_errors::ErrorReported;
use rustc_hir::def_id::DefId;
Expand Down Expand Up @@ -945,7 +945,7 @@ fn opt_normalize_projection_type<'a, 'b, 'tcx>(
Normalized { value: projected_ty, obligations: projected_obligations }
};

let mut deduped: FxHashSet<_> = Default::default();
let mut deduped: SsoHashSet<_> = Default::default();
result
.obligations
.drain_filter(|sub_obligation| !deduped.insert(sub_obligation.clone()));
Expand Down

0 comments on commit 851f2b2

Please sign in to comment.