diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-11-07 01:02:26 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-07 01:02:26 +0900 |
| commit | 09a40af85eae9895f6e4d90967d566aaec217769 (patch) | |
| tree | 47d550b60d5d2e76eb6c9e55a9d0420ade3113d6 | |
| parent | 0a89d7bd7e341e4f2a7de17af765ce24dfecf569 (diff) | |
| parent | de2940ff6301f23fd721e0d6f38b23ae2e3a9746 (diff) | |
Rollup merge of #78794 - est31:collect_bang, r=oli-obk
rustc_expand: use collect_bang helper instead of manual reimplementation
| -rw-r--r-- | compiler/rustc_expand/src/expand.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_expand/src/expand.rs b/compiler/rustc_expand/src/expand.rs index 3e5762ab992..f6959591b56 100644 --- a/compiler/rustc_expand/src/expand.rs +++ b/compiler/rustc_expand/src/expand.rs @@ -1436,9 +1436,9 @@ impl<'a, 'b> MutVisitor for InvocationCollector<'a, 'b> { item.attrs = attrs; self.check_attributes(&item.attrs); item.and_then(|item| match item.kind { - ItemKind::MacCall(mac) => self - .collect(AstFragmentKind::Items, InvocationKind::Bang { mac, span }) - .make_items(), + ItemKind::MacCall(mac) => { + self.collect_bang(mac, span, AstFragmentKind::Items).make_items() + } _ => unreachable!(), }) } |
