Feature gate: #![feature(error_in_panic)]
This is a tracking issue for integrating the Error trait with panic interfaces.
This allows panic handlers to access the richer Error trait interface when reporting panics that have a runtime error as their source.
Public API
/// core::panic
impl PanicInfo<'_> {
pub fn source(&self) -> Option<&(dyn Error + 'static)>;
}
Steps / History
Unresolved Questions
Feature gate:
#![feature(error_in_panic)]This is a tracking issue for integrating the
Errortrait withpanicinterfaces.This allows panic handlers to access the richer
Errortrait interface when reporting panics that have a runtime error as their source.Public API
Steps / History
Errortrait with panic interfaces libs-team#124Unresolved Questions
expectandunwrap? (More detail in the ACP)Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩