about summary refs log tree commit diff
path: root/compiler/rustc_expand/src/expand.rs
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-09-26 18:11:12 +0200
committerGitHub <noreply@github.com>2025-09-26 18:11:12 +0200
commitba93a4f6743e46250e1a01359244914a4186dadc (patch)
treec01c303a8586fd9ec604f42f9610d01dc4ea9ba9 /compiler/rustc_expand/src/expand.rs
parent35f443d31822c0f36e5033561f716d84b484c1db (diff)
parenta1646bf90c12c168a898361d2ef34e73311eccde (diff)
downloadrust-ba93a4f6743e46250e1a01359244914a4186dadc.tar.gz
rust-ba93a4f6743e46250e1a01359244914a4186dadc.zip
Rollup merge of #146849 - joshtriplett:macro-reduce-legacy-bang, r=petrochenkov
Reduce some uses of `LegacyBang`

- **Switch `dummy_bang` from `LegacyBang` to `Bang`**
- **mbe: Switch dummy extension used for errors from `LegacyBang` to `Bang`**
Diffstat (limited to 'compiler/rustc_expand/src/expand.rs')
-rw-r--r--compiler/rustc_expand/src/expand.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_expand/src/expand.rs b/compiler/rustc_expand/src/expand.rs
index 4c0e0bbfe26..172bc3d1d9f 100644
--- a/compiler/rustc_expand/src/expand.rs
+++ b/compiler/rustc_expand/src/expand.rs
@@ -971,7 +971,7 @@ impl<'a, 'b> MacroExpander<'a, 'b> {
                             });
                         }
                     },
-                    SyntaxExtensionKind::LegacyBang(..) => {
+                    SyntaxExtensionKind::Bang(..) => {
                         let msg = "expanded a dummy glob delegation";
                         let guar = self.cx.dcx().span_delayed_bug(span, msg);
                         return ExpandResult::Ready(fragment_kind.dummy(span, guar));