1
1
use std:: collections:: HashMap ;
2
2
use std:: env;
3
3
use std:: fmt;
4
- use std:: hash:: { Hash , Hasher , SipHasher } ;
4
+ use std:: hash:: { Hash , Hasher } ;
5
5
use std:: path:: { Path , PathBuf } ;
6
6
use std:: sync:: Arc ;
7
7
@@ -11,7 +11,7 @@ use log::info;
11
11
use super :: { BuildContext , CompileKind , Context , FileFlavor , Layout } ;
12
12
use crate :: core:: compiler:: { CompileMode , CompileTarget , CrateType , FileType , Unit } ;
13
13
use crate :: core:: { Target , TargetKind , Workspace } ;
14
- use crate :: util:: { self , CargoResult } ;
14
+ use crate :: util:: { self , CargoResult , StableHasher } ;
15
15
16
16
/// The `Metadata` is a hash used to make unique file names for each unit in a
17
17
/// build. It is also use for symbol mangling.
@@ -481,7 +481,7 @@ fn compute_metadata(
481
481
if !should_use_metadata ( bcx, unit) {
482
482
return None ;
483
483
}
484
- let mut hasher = SipHasher :: new ( ) ;
484
+ let mut hasher = StableHasher :: new ( ) ;
485
485
486
486
// This is a generic version number that can be changed to make
487
487
// backwards-incompatible changes to any file structures in the output
@@ -556,7 +556,7 @@ fn compute_metadata(
556
556
Some ( Metadata ( hasher. finish ( ) ) )
557
557
}
558
558
559
- fn hash_rustc_version ( bcx : & BuildContext < ' _ , ' _ > , hasher : & mut SipHasher ) {
559
+ fn hash_rustc_version ( bcx : & BuildContext < ' _ , ' _ > , hasher : & mut StableHasher ) {
560
560
let vers = & bcx. rustc ( ) . version ;
561
561
if vers. pre . is_empty ( ) || bcx. config . cli_unstable ( ) . separate_nightlies {
562
562
// For stable, keep the artifacts separate. This helps if someone is
0 commit comments