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:
Kent Overstreet 2026-04-12 20:11:27 -04:00
parent dfab7d0a33
commit 4556e16fd7
2 changed files with 10 additions and 1 deletions

View file

@ -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()
}