Fix msg passed to span_bug

This commit is contained in:
Raminder Singh
2023-06-21 16:54:54 +05:30
parent ecdb1280cb
commit 9bca44b72f
+1 -1
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"),