about summary refs log tree commit diff
path: root/compiler
diff options
context:
space:
mode:
authorRaminder Singh <romi_ssk@yahoo.co.in>2023-06-21 16:54:54 +0530
committerRaminder Singh <romi_ssk@yahoo.co.in>2023-06-21 16:54:54 +0530
commit91aef00e51d9f7500b8d76bce0917138ffa00d2f (patch)
treea77627a898c9cce10bef99bf990b42f7f386515c /compiler
parent3c9e0705ba0c1c845fe7cdbd0bdf4a914f49cc8e (diff)
downloadrust-91aef00e51d9f7500b8d76bce0917138ffa00d2f.tar.gz
rust-91aef00e51d9f7500b8d76bce0917138ffa00d2f.zip
Fix msg passed to span_bug
Diffstat (limited to 'compiler')
-rw-r--r--compiler/rustc_expand/src/mbe/macro_rules.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_expand/src/mbe/macro_rules.rs b/compiler/rustc_expand/src/mbe/macro_rules.rs
index ee9616a0f0a..4a8a14994ff 100644
--- a/compiler/rustc_expand/src/mbe/macro_rules.rs
+++ b/compiler/rustc_expand/src/mbe/macro_rules.rs
@@ -535,7 +535,7 @@ pub fn compile_declarative_macro(
                     .pop()
                     .unwrap();
                 }
-                sess.parse_sess.span_diagnostic.span_bug(def.span, "wrong-structured lhs")
+                sess.parse_sess.span_diagnostic.span_bug(def.span, "wrong-structured rhs")
             })
             .collect::<Vec<mbe::TokenTree>>(),
         _ => sess.parse_sess.span_diagnostic.span_bug(def.span, "wrong-structured rhs"),