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.
This commit is contained in:
@@ -604,6 +604,9 @@ pub mod alloc;
|
||||
// Private support modules
|
||||
mod panicking;
|
||||
|
||||
#[unstable(feature = "ice_to_disk", issue = "none")]
|
||||
pub use panicking::panic_hook_with_disk_dump;
|
||||
|
||||
#[path = "../../backtrace/src/lib.rs"]
|
||||
#[allow(dead_code, unused_attributes, fuzzy_provenance_casts)]
|
||||
mod backtrace_rs;
|
||||
|
||||
Reference in New Issue
Block a user