Skip to content

Commit 6013a80

Browse files
committed
On nightly, dump ICE backtraces to disk
Implement rust-lang/compiler-team#578. When an ICE is encountered on nightly releases, the new rustc panic handler will also write the contents of the backtrace to disk. If any `delay_span_bug`s are encountered, their backtrace is also added to the file. The platform and rustc version will also be collected.
1 parent 78331ee commit 6013a80

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/parse/session.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ fn default_handler(
162162
ignore_path_set,
163163
can_reset,
164164
}),
165+
None,
165166
)
166167
}
167168

@@ -233,7 +234,7 @@ impl ParseSess {
233234
}
234235

235236
pub(crate) fn set_silent_emitter(&mut self) {
236-
self.parse_sess.span_diagnostic = Handler::with_emitter(true, None, silent_emitter());
237+
self.parse_sess.span_diagnostic = Handler::with_emitter(true, None, silent_emitter(), None);
237238
}
238239

239240
pub(crate) fn span_to_filename(&self, span: Span) -> FileName {

0 commit comments

Comments
 (0)