Rollup merge of #112885 - imor:fix_span_bug_msg, r=cjgillot

Fix msg passed to span_bug
This commit is contained in:
Guillaume Gomez 2023-06-21 15:45:18 +02:00 committed by GitHub
commit 82bd2e334f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"),