enable short backtraces by default
Uses panic_backtrace_config feature to set BacktraceStyle::Short, so panics show useful backtraces without needing RUST_BACKTRACE=1. Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
parent
dfab7d0a33
commit
4556e16fd7
2 changed files with 10 additions and 1 deletions
|
|
@ -1,2 +1,7 @@
|
|||
#![feature(panic_backtrace_config)]
|
||||
#![warn(unreachable_pub)]
|
||||
fn main() { consciousness::user::main() }
|
||||
|
||||
fn main() {
|
||||
std::panic::set_backtrace_style(std::panic::BacktraceStyle::Short);
|
||||
consciousness::user::main()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue