Introduce DiagCtxt::struct_bug.

This makes `DiagCtxt::bug` look like the other similar functions.
This commit is contained in:
Nicholas Nethercote 2023-12-18 17:05:01 +11:00
parent 9ed87336b0
commit 072c157d68
2 changed files with 10 additions and 1 deletions

View file

@ -1159,6 +1159,7 @@ impl<'a> ExtCtxt<'a> {
// Fixme: does this result in errors?
self.expansions.clear();
}
#[rustc_lint_diagnostics]
pub fn bug(&self, msg: &'static str) -> ! {
self.sess.dcx().bug(msg);
}