Don't translate compiler-internal bug messages
This commit is contained in:
parent
c67cb3e577
commit
d97ec97b94
6 changed files with 27 additions and 45 deletions
|
@ -247,7 +247,7 @@ impl<'a> Parser<'a> {
|
|||
self.sess.span_diagnostic.struct_span_err(sp, m)
|
||||
}
|
||||
|
||||
pub fn span_bug<S: Into<MultiSpan>>(&self, sp: S, m: impl Into<DiagnosticMessage>) -> ! {
|
||||
pub fn span_bug<S: Into<MultiSpan>>(&self, sp: S, m: impl Into<String>) -> ! {
|
||||
self.sess.span_diagnostic.span_bug(sp, m)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue