diff options
| author | bors <bors@rust-lang.org> | 2016-04-30 02:07:33 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2016-04-30 02:07:33 -0700 |
| commit | b0aefff71499ac8e5f65c4a241b279e687c44c36 (patch) | |
| tree | fbf61aea82a77a40de7c5406658c2ecf74a0e2f0 /src/libsyntax/ext | |
| parent | 46504e9a9d3a57a852ff57f7530de2017a7b37ba (diff) | |
| parent | 86f069d41a89122740d58d0eb8eaeb7496bb03ce (diff) | |
| download | rust-b0aefff71499ac8e5f65c4a241b279e687c44c36.tar.gz rust-b0aefff71499ac8e5f65c4a241b279e687c44c36.zip | |
Auto merge of #32846 - jseyfried:allow_unconfigured_gated_expanded_items, r=nrc
Avoid gated feature checking unconfigured expanded items Avoid gated feature checking unconfigured macro-expanded items (fixes #32840). Unconfigured items that are not macro-expanded are already not gated feature checked. r? @nrc
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/expand.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs index 57500f92b79..63d9a699944 100644 --- a/src/libsyntax/ext/expand.rs +++ b/src/libsyntax/ext/expand.rs @@ -327,9 +327,7 @@ macro_rules! with_exts_frame { // When we enter a module, record it, for the sake of `module!` pub fn expand_item(it: P<ast::Item>, fld: &mut MacroExpander) -> SmallVector<P<ast::Item>> { - let it = expand_item_multi_modifier(Annotatable::Item(it), fld); - - expand_annotatable(it, fld) + expand_annotatable(Annotatable::Item(it), fld) .into_iter().map(|i| i.expect_item()).collect() } |
