Remove redundant call to expand_item_multi_modifier

This commit is contained in:
Jeffrey Seyfried 2016-04-09 05:37:31 +00:00
parent 5eb775eedd
commit 86f069d41a

View File

@ -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()
}