mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
c7d4c54cc8
Use Backtrace::force_capture instead of Backtrace::capture in rustc_log After https://github.com/rust-lang/rust/pull/125063, the compiler and custom drivers won't automatically set the RUST_BACKTRACE environment variable anymore, so we have to call `Backtrace::force_capture` instead of `Backtrace::capture` to unconditionally capture a backtrace. rustc_log handles enabling backtraces via env vars itself, so we don't want RUST_BACKTRACE to make a difference.