Skip to content

Commit 068f3ac

Browse files
committed
Update test.
1 parent 1b4a19d commit 068f3ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/rustc_hir/src/tests.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ fn def_path_hash_depends_on_crate_id() {
2828
assert_ne!(h0.local_hash(), h1.local_hash());
2929

3030
fn mk_test_hash(stable_crate_id: StableCrateId) -> DefPathHash {
31-
let parent_hash = DefPathHash::new(stable_crate_id, Hash64::ZERO);
31+
let parent_hash =
32+
DefPathHash::new(stable_crate_id, Hash64::new(stable_crate_id.as_u64()));
3233

3334
let key = DefKey {
3435
parent: None,

0 commit comments

Comments
 (0)