diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-07-06 19:45:23 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-07-11 00:12:08 +0300 |
| commit | 0ec6ea7333a8918a96f40110e014f2bbbd72281f (patch) | |
| tree | f74a3a467a2314be5d1d10237289a4f19d3612d2 /src/test/ui/thinlto | |
| parent | f92394209455bf14594f279249c2e592809180cd (diff) | |
| download | rust-0ec6ea7333a8918a96f40110e014f2bbbd72281f.tar.gz rust-0ec6ea7333a8918a96f40110e014f2bbbd72281f.zip | |
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.
Diffstat (limited to 'src/test/ui/thinlto')
0 files changed, 0 insertions, 0 deletions
