Skip to content

Commit 83d283b

Browse files
committed
Avoid expanding decorator-generated items twice
1 parent bb4a79b commit 83d283b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/libsyntax/ext/expand.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -787,8 +787,6 @@ fn decorate(a: Annotatable, fld: &mut MacroExpander) -> SmallVector<Annotatable>
787787
let mut decorator_items = SmallVector::zero();
788788
let mut new_attrs = Vec::new();
789789
expand_decorators(a.clone(), fld, &mut decorator_items, &mut new_attrs);
790-
let decorator_items =
791-
decorator_items.into_iter().flat_map(|a| expand_annotatable(a, fld)).collect();
792790

793791
let mut new_items = SmallVector::one(a.fold_attrs(new_attrs));
794792
new_items.push_all(decorator_items);

0 commit comments

Comments
 (0)