about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorJeffrey Seyfried <jeffrey.seyfried@gmail.com>2016-04-09 05:37:31 +0000
committerJeffrey Seyfried <jeffrey.seyfried@gmail.com>2016-04-09 05:37:56 +0000
commit86f069d41a89122740d58d0eb8eaeb7496bb03ce (patch)
tree4b90a06a3c552a6050ead4b3adc6b6d61b1f5a61 /src/libsyntax
parent5eb775eedd64d3b3abab63a8ef39ca9664f4cad0 (diff)
downloadrust-86f069d41a89122740d58d0eb8eaeb7496bb03ce.tar.gz
rust-86f069d41a89122740d58d0eb8eaeb7496bb03ce.zip
Remove redundant call to `expand_item_multi_modifier`
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/ext/expand.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libsyntax/ext/expand.rs b/src/libsyntax/ext/expand.rs
index 8550617560d..27d7234aae2 100644
--- a/src/libsyntax/ext/expand.rs
+++ b/src/libsyntax/ext/expand.rs
@@ -309,9 +309,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()
 }