Skip to content

Commit fcdff63

Browse files
committed
Use SHA256 by default when targeting MSVC
1 parent 079e544 commit fcdff63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_session/src/session.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1420,7 +1420,7 @@ pub fn build_session(
14201420
let loader = file_loader.unwrap_or_else(|| Box::new(RealFileLoader));
14211421
let hash_kind = sopts.unstable_opts.src_hash_algorithm.unwrap_or_else(|| {
14221422
if target_cfg.is_like_msvc {
1423-
SourceFileHashAlgorithm::Sha1
1423+
SourceFileHashAlgorithm::Sha256
14241424
} else {
14251425
SourceFileHashAlgorithm::Md5
14261426
}

0 commit comments

Comments
 (0)