about summary refs log tree commit diff
path: root/compiler/rustc_resolve/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-12-11 10:20:43 +0000
committerbors <bors@rust-lang.org>2020-12-11 10:20:43 +0000
commit19eb1c4c526071c430c05fffc64da71ac057a3d5 (patch)
tree10ebd40896f63817de190fd459f92595e4694d4a /compiler/rustc_resolve/src
parenta2e29d67c26bdf8f278c98ee02d6cc77a279ed2e (diff)
parent3918b82993708db5ddcfd476252cf7632281ce19 (diff)
downloadrust-19eb1c4c526071c430c05fffc64da71ac057a3d5.tar.gz
rust-19eb1c4c526071c430c05fffc64da71ac057a3d5.zip
Auto merge of #79915 - Aaron1011:fix/fix-reuse-def-path-hash, r=petrochenkov
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_resolve/src')
0 files changed, 0 insertions, 0 deletions