mirror of
https://github.com/openharmony/third_party_rust_rust.git
synced 2026-07-24 15:15:34 -04:00
Fix msg passed to span_bug
This commit is contained in:
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user