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
|
@ -1147,7 +1147,7 @@ impl<'a> ExtCtxt<'a> {
|
|||
pub fn span_warn<S: Into<MultiSpan>>(&self, sp: S, msg: impl Into<DiagnosticMessage>) {
|
||||
self.sess.parse_sess.span_diagnostic.span_warn(sp, msg);
|
||||
}
|
||||
pub fn span_bug<S: Into<MultiSpan>>(&self, sp: S, msg: impl Into<DiagnosticMessage>) -> ! {
|
||||
pub fn span_bug<S: Into<MultiSpan>>(&self, sp: S, msg: impl Into<String>) -> ! {
|
||||
self.sess.parse_sess.span_diagnostic.span_bug(sp, msg);
|
||||
}
|
||||
pub fn trace_macros_diag(&mut self) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue