We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b4a19d commit 068f3acCopy full SHA for 068f3ac
compiler/rustc_hir/src/tests.rs
@@ -28,7 +28,8 @@ fn def_path_hash_depends_on_crate_id() {
28
assert_ne!(h0.local_hash(), h1.local_hash());
29
30
fn mk_test_hash(stable_crate_id: StableCrateId) -> DefPathHash {
31
- let parent_hash = DefPathHash::new(stable_crate_id, Hash64::ZERO);
+ let parent_hash =
32
+ DefPathHash::new(stable_crate_id, Hash64::new(stable_crate_id.as_u64()));
33
34
let key = DefKey {
35
parent: None,
0 commit comments