diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2021-09-25 02:27:00 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2021-10-02 18:31:42 +0300 |
| commit | 5aa732a364651010de8f8c5c7bada11e1da7fce1 (patch) | |
| tree | 66516d4d365e4994fc2c492f222d5e65f492b748 /src/test/ui/use | |
| parent | b27661eb33c74cb514dba059b47d86b6582ac1c2 (diff) | |
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 'src/test/ui/use')
| -rw-r--r-- | src/test/ui/use/use-from-trait-xc.stderr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/ui/use/use-from-trait-xc.stderr b/src/test/ui/use/use-from-trait-xc.stderr index 37b4e61c808..14523afbdac 100644 --- a/src/test/ui/use/use-from-trait-xc.stderr +++ b/src/test/ui/use/use-from-trait-xc.stderr @@ -38,7 +38,7 @@ error[E0432]: unresolved import `use_from_trait_xc::Baz::new` --> $DIR/use-from-trait-xc.rs:23:5 | LL | use use_from_trait_xc::Baz::new as baznew; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `new` in `Baz` + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `new` in `sub::Baz` error[E0603]: struct `Foo` is private --> $DIR/use-from-trait-xc.rs:14:24 |
