about summary refs log tree commit diff
path: root/compiler/rustc_mir/src/transform/coverage/debug.rs
diff options
context:
space:
mode:
authorAaron Hill <aa1ronham@gmail.com>2020-12-10 15:27:07 -0500
committerAaron Hill <aa1ronham@gmail.com>2020-12-10 16:04:19 -0500
commit3918b82993708db5ddcfd476252cf7632281ce19 (patch)
tree4e25184d3c3d04d0745502502c48ea51aa5c334d /compiler/rustc_mir/src/transform/coverage/debug.rs
parentd32c320d7eee56706486fef6be778495303afe9e (diff)
downloadrust-3918b82993708db5ddcfd476252cf7632281ce19.tar.gz
rust-3918b82993708db5ddcfd476252cf7632281ce19.zip
Use `def_path_hash_to_def_id` when re-using a `RawDefId`
Fixes #79890

Previously, we just copied a `RawDefId` from the 'old' map to the 'new'
map. However, the `RawDefId` for a given `DefPathHash` may be different
in the current compilation session. Using `def_path_hash_to_def_id`
ensures that the `RawDefId` we use is valid in the current session.
Diffstat (limited to 'compiler/rustc_mir/src/transform/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions