Introduce DiagCtxt::struct_bug
.
This makes `DiagCtxt::bug` look like the other similar functions.
This commit is contained in:
parent
9ed87336b0
commit
072c157d68
2 changed files with 10 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue