about summary refs log tree commit diff
path: root/compiler/rustc_session
diff options
context:
space:
mode:
authorJacob Kiesel <jake@bitcrafters.co>2024-09-28 17:38:28 -0600
committerJacob Kiesel <jake@bitcrafters.co>2024-10-01 21:23:21 -0600
commit081661b78d44bd41f8a1fd46b9ed11823cd7811e (patch)
treee09dfc4aa7f2fed66c60eb0fadd037b5d0b14027 /compiler/rustc_session
parent6ff7a3e2aaa383062aef31f239a0b3939e544a86 (diff)
downloadrust-081661b78d44bd41f8a1fd46b9ed11823cd7811e.tar.gz
rust-081661b78d44bd41f8a1fd46b9ed11823cd7811e.zip
disregard what we believe is supported in cargo for hash type
Diffstat (limited to 'compiler/rustc_session')
-rw-r--r--compiler/rustc_session/src/options.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/compiler/rustc_session/src/options.rs b/compiler/rustc_session/src/options.rs
index c32cf3d015f..b78d370bce0 100644
--- a/compiler/rustc_session/src/options.rs
+++ b/compiler/rustc_session/src/options.rs
@@ -1295,11 +1295,7 @@ mod parse {
     ) -> bool {
         match v.and_then(|s| SourceFileHashAlgorithm::from_str(s).ok()) {
             Some(hash_kind) => {
-                if hash_kind.supported_in_cargo() {
-                    *slot = Some(hash_kind);
-                } else {
-                    return false;
-                }
+                *slot = Some(hash_kind);
             }
             _ => return false,
         }