about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2025-06-24 04:05:27 +0000
committerCamille GILLOT <gillot.camille@gmail.com>2025-06-24 04:05:27 +0000
commit068f3ac20b4074b523e80c07b3bf139ced9374dd (patch)
treef083c03cce02f84cc3b28094a82077730f8c4a07
parent1b4a19d4ac514bd50a98b28421a9149159e7c2f4 (diff)
downloadrust-068f3ac20b4074b523e80c07b3bf139ced9374dd.tar.gz
rust-068f3ac20b4074b523e80c07b3bf139ced9374dd.zip
Update test.
-rw-r--r--compiler/rustc_hir/src/tests.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_hir/src/tests.rs b/compiler/rustc_hir/src/tests.rs
index 18c2bfdac8c..3b797c1f103 100644
--- a/compiler/rustc_hir/src/tests.rs
+++ b/compiler/rustc_hir/src/tests.rs
@@ -28,7 +28,8 @@ fn def_path_hash_depends_on_crate_id() {
         assert_ne!(h0.local_hash(), h1.local_hash());
 
         fn mk_test_hash(stable_crate_id: StableCrateId) -> DefPathHash {
-            let parent_hash = DefPathHash::new(stable_crate_id, Hash64::ZERO);
+            let parent_hash =
+                DefPathHash::new(stable_crate_id, Hash64::new(stable_crate_id.as_u64()));
 
             let key = DefKey {
                 parent: None,