Skip to content

Commit 82bd2e3

Browse files
authoredJun 21, 2023
Rollup merge of #112885 - imor:fix_span_bug_msg, r=cjgillot
Fix msg passed to span_bug
2 parents 4f6c48b + 91aef00 commit 82bd2e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎compiler/rustc_expand/src/mbe/macro_rules.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ pub fn compile_declarative_macro(
535535
.pop()
536536
.unwrap();
537537
}
538-
sess.parse_sess.span_diagnostic.span_bug(def.span, "wrong-structured lhs")
538+
sess.parse_sess.span_diagnostic.span_bug(def.span, "wrong-structured rhs")
539539
})
540540
.collect::<Vec<mbe::TokenTree>>(),
541541
_ => sess.parse_sess.span_diagnostic.span_bug(def.span, "wrong-structured rhs"),

0 commit comments

Comments
 (0)
Please sign in to comment.