Add TODO comments about possibly migrating away from the backtrace crate.

This commit is contained in:
Nick Mathewson 2023-07-05 16:39:11 -04:00
parent 9c4de185e9
commit afa51fd5ca
2 changed files with 4 additions and 1 deletions

View File

@ -261,8 +261,9 @@ fn install_panic_handler() {
.map(|loc| loc.to_string().into())
.unwrap_or_else(|| "???".into());
// TODO MSRV 1.65: std::backtrace::Backtrace is stable; maybe we should be using
// that instead?
let backtrace = backtrace::Backtrace::new();
tracing::error!("Panic at {}: {}\n{:?}", location_str, msg, backtrace);
}));
}

View File

@ -10,6 +10,8 @@ use super::*;
/// Backtrace implementation for when the feature is enabled
mod ie_backtrace {
use super::*;
// TODO MSRV 1.65: std::backtrace::Backtrace is stable; maybe we should be
// using that instead?
use backtrace::Backtrace;
#[derive(Debug, Clone)]