rust/compiler/rustc_resolve
Vadim Petrochenkov 5aa732a364 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.
2021-10-02 18:31:42 +03:00
..
src resolve: Cache module loading for all foreign modules 2021-10-02 18:31:42 +03:00
Cargo.toml Migrate to 2021 2021-09-20 22:21:42 -04:00