Skip to content

Commit

Permalink
Rollup merge of rust-lang#112885 - imor:fix_span_bug_msg, r=cjgillot
Browse files Browse the repository at this point in the history
Fix msg passed to span_bug
  • Loading branch information
GuillaumeGomez authored Jun 21, 2023
2 parents 4f6c48b + 91aef00 commit 82bd2e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_expand/src/mbe/macro_rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit 82bd2e3

Please sign in to comment.