diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2023-06-21 15:45:18 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-21 15:45:18 +0200 |
| commit | 82bd2e334f96297bcb2fe1d85ecb3eb05ca4fbdc (patch) | |
| tree | 6c5c1224c31cc5ee245bed82710ef9a9a53f5cac | |
| parent | 4f6c48b61bd2e855fa4f63038297e832104445ec (diff) | |
| parent | 91aef00e51d9f7500b8d76bce0917138ffa00d2f (diff) | |
| download | rust-82bd2e334f96297bcb2fe1d85ecb3eb05ca4fbdc.tar.gz rust-82bd2e334f96297bcb2fe1d85ecb3eb05ca4fbdc.zip | |
Rollup merge of #112885 - imor:fix_span_bug_msg, r=cjgillot
Fix msg passed to span_bug
| -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"), |
