diff options
| author | est31 <MTest31@outlook.com> | 2020-11-06 02:46:03 +0100 |
|---|---|---|
| committer | est31 <MTest31@outlook.com> | 2020-11-06 03:16:56 +0100 |
| commit | de2940ff6301f23fd721e0d6f38b23ae2e3a9746 (patch) | |
| tree | f7d763dc15f6ad0a74e00d9e77f4878ae76a863d | |
| parent | f7801d6c7cc19ab22bdebcc8efa894a564c53469 (diff) | |
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!(), }) } |
