@@ -19,13 +19,13 @@ pub struct ResolverContext {
1919 pub age : ContextAge ,
2020 pub activations : Activations ,
2121 /// list the features that are activated for each package
22- pub resolve_features : im_rc:: HashMap < PackageId , FeaturesSet > ,
22+ pub resolve_features : im_rc:: HashMap < PackageId , FeaturesSet , rustc_hash :: FxBuildHasher > ,
2323 /// get the package that will be linking to a native library by its links attribute
24- pub links : im_rc:: HashMap < InternedString , PackageId > ,
24+ pub links : im_rc:: HashMap < InternedString , PackageId , rustc_hash :: FxBuildHasher > ,
2525
2626 /// a way to look up for a package in activations what packages required it
2727 /// and all of the exact deps that it fulfilled.
28- pub parents : Graph < PackageId , im_rc:: HashSet < Dependency > > ,
28+ pub parents : Graph < PackageId , im_rc:: HashSet < Dependency , rustc_hash :: FxBuildHasher > > ,
2929}
3030
3131/// When backtracking it can be useful to know how far back to go.
@@ -40,7 +40,9 @@ pub type ContextAge = usize;
4040/// semver compatible version of each crate.
4141/// This all so stores the `ContextAge`.
4242pub type ActivationsKey = ( InternedString , SourceId , SemverCompatibility ) ;
43- pub type Activations = im_rc:: HashMap < ActivationsKey , ( Summary , ContextAge ) > ;
43+
44+ pub type Activations =
45+ im_rc:: HashMap < ActivationsKey , ( Summary , ContextAge ) , rustc_hash:: FxBuildHasher > ;
4446
4547/// A type that represents when cargo treats two Versions as compatible.
4648/// Versions `a` and `b` are compatible if their left-most nonzero digit is the
@@ -74,10 +76,10 @@ impl ResolverContext {
7476 pub fn new ( ) -> ResolverContext {
7577 ResolverContext {
7678 age : 0 ,
77- resolve_features : im_rc:: HashMap :: new ( ) ,
78- links : im_rc:: HashMap :: new ( ) ,
79+ resolve_features : im_rc:: HashMap :: default ( ) ,
80+ links : im_rc:: HashMap :: default ( ) ,
7981 parents : Graph :: new ( ) ,
80- activations : im_rc:: HashMap :: new ( ) ,
82+ activations : im_rc:: HashMap :: default ( ) ,
8183 }
8284 }
8385
0 commit comments