diff options
| author | Raminder Singh <romi_ssk@yahoo.co.in> | 2023-06-21 16:54:54 +0530 |
|---|---|---|
| committer | Raminder Singh <romi_ssk@yahoo.co.in> | 2023-06-21 16:54:54 +0530 |
| commit | 91aef00e51d9f7500b8d76bce0917138ffa00d2f (patch) | |
| tree | a77627a898c9cce10bef99bf990b42f7f386515c /compiler | |
| parent | 3c9e0705ba0c1c845fe7cdbd0bdf4a914f49cc8e (diff) | |
| download | rust-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.rs | 2 |
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"), |
