rust/src/librustc_resolve
Vadim Petrochenkov 0ec6ea7333 resolve: Fix access to extern and stdlib prelude from opaque macros
Ok, it's hard to explain what happens, but identifier's hygienic contexts need to be "adjusted" to modules/scopes before they are resolved in them.
To be resolved in all kinds on preludes the identifier needs to be adjusted to the root expansion (aka "no expansion").

Previously this was done for the `macro m() { ::my_crate::foo }` case, but forgotten for all other cases.
2019-07-11 00:12:08 +03:00
..
build_reduced_graph.rs resolve: Divide macro path resolution into speculative and error reporting parts 2019-07-11 00:12:08 +03:00
Cargo.toml rustc: Remove dylib crate type from most rustc crates 2019-07-07 03:23:00 +02:00
check_unused.rs rustc: remove 'x: 'y bounds (except from comments/strings). 2019-06-18 18:10:21 +03:00
diagnostics.rs rustc: remove 'x: 'y bounds (except from comments/strings). 2019-06-18 18:10:21 +03:00
error_codes.rs Fix error code description 2019-04-25 23:19:36 +01:00
lib.rs resolve: Fix access to extern and stdlib prelude from opaque macros 2019-07-11 00:12:08 +03:00
macros.rs resolve: Fix access to extern and stdlib prelude from opaque macros 2019-07-11 00:12:08 +03:00
resolve_imports.rs resolve/expand: resolve_macro_invocation no longer returns determinate errors 2019-07-11 00:12:08 +03:00