diff options
| author | b-naber <bn263@gmx.de> | 2022-06-07 19:29:13 +0200 |
|---|---|---|
| committer | b-naber <bn263@gmx.de> | 2022-06-14 16:12:28 +0200 |
| commit | 060acc97db878964b6229dc89a657201f4232b14 (patch) | |
| tree | 18c471ee968eed0d1be6efcd241c478c3fb09969 /compiler/rustc_codegen_ssa/src/debuginfo | |
| parent | 8093db6e2b51bd9036ea2f76ad4342da0ca03bea (diff) | |
| download | rust-060acc97db878964b6229dc89a657201f4232b14.tar.gz rust-060acc97db878964b6229dc89a657201f4232b14.zip | |
rebase
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/debuginfo')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs b/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs index f8497702832..4ac3d2eaa0c 100644 --- a/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs +++ b/compiler/rustc_codegen_ssa/src/debuginfo/type_names.rs @@ -703,7 +703,8 @@ fn push_const_param<'tcx>(tcx: TyCtxt<'tcx>, ct: ty::Const<'tcx>, output: &mut S // but we get a deterministic, virtually unique value for the constant. let hcx = &mut tcx.create_stable_hashing_context(); let mut hasher = StableHasher::new(); - hcx.while_hashing_spans(false, |hcx| ct.kind().hash_stable(hcx, &mut hasher)); + let ct = ct.eval(tcx, ty::ParamEnv::reveal_all()); + hcx.while_hashing_spans(false, |hcx| ct.to_valtree().hash_stable(hcx, &mut hasher)); // Let's only emit 64 bits of the hash value. That should be plenty for // avoiding collisions and will make the emitted type names shorter. let hash: u64 = hasher.finish(); |
