about summary refs log tree commit diff
path: root/compiler/rustc_plugin_impl/src
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2021-09-25 02:27:00 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2021-10-02 18:31:42 +0300
commit5aa732a364651010de8f8c5c7bada11e1da7fce1 (patch)
tree66516d4d365e4994fc2c492f222d5e65f492b748 /compiler/rustc_plugin_impl/src
parentb27661eb33c74cb514dba059b47d86b6582ac1c2 (diff)
downloadrust-5aa732a364651010de8f8c5c7bada11e1da7fce1.tar.gz
rust-5aa732a364651010de8f8c5c7bada11e1da7fce1.zip
resolve: Cache module loading for all foreign modules
It was previously cached for modules loaded from `fn get_module`, but not for modules loaded from `fn build_reduced_graph_for_external_crate_res`.
This also makes all foreign modules use their real parent, span and expansion instead of possibly a parent/span/expansion of their reexport.

An ICE happening on attempt to decode expansions for foreign enums and traits is avoided.

Also local enums and traits are now added to the module map.
Diffstat (limited to 'compiler/rustc_plugin_impl/src')
0 files changed, 0 insertions, 0 deletions