We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d0e4af commit 8f11f48Copy full SHA for 8f11f48
compiler/rustc_log/src/lib.rs
@@ -159,7 +159,9 @@ where
159
if !target.contains(&self.backtrace_target) {
160
return Ok(());
161
}
162
- let backtrace = std::backtrace::Backtrace::capture();
+ // Use Backtrace::force_capture because we don't want to depend on the
163
+ // RUST_BACKTRACE environment variable being set.
164
+ let backtrace = std::backtrace::Backtrace::force_capture();
165
writeln!(writer, "stack backtrace: \n{backtrace:?}")
166
167
0 commit comments