]> git.lizzy.rs Git - rust.git/commit
resolve: Support resolving identifier macros without their own ID
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>
Sun, 2 Sep 2018 01:57:56 +0000 (04:57 +0300)
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>
Mon, 10 Sep 2018 21:30:44 +0000 (00:30 +0300)
commit730c5de2815f310ee4e71dd48af101c10e46d747
treebb0003d21981010ddbb0235eaf69c11c6a6746ab
parent551244f05b92f90fe327f8f0a6d9a6e674eaab1b
resolve: Support resolving identifier macros without their own ID

Invocation/expansion ID (aka `Mark`) is not really necessary for resolving a macro path.
What is really necessary is its parent module, parent expansion and parent legacy scope.
This is required for validation resolutions of built-in attributes, which don't get their own `Mark`s
src/librustc_resolve/lib.rs
src/librustc_resolve/macros.rs
src/libsyntax/ext/base.rs