We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e4c64a1 + 1b3465c commit a97b3ffCopy full SHA for a97b3ff
src/librustc_driver/lib.rs
@@ -831,11 +831,14 @@ pub fn monitor<F:FnOnce()+Send+'static>(f: F) {
831
"the compiler unexpectedly panicked. this is a bug.".to_string(),
832
format!("we would appreciate a bug report: {}",
833
BUG_REPORT_URL),
834
- "run with `RUST_BACKTRACE=1` for a backtrace".to_string(),
835
];
836
for note in &xs {
837
emitter.emit(None, ¬e[..], None, diagnostic::Note)
838
}
+ if let None = env::var_os("RUST_BACKTRACE") {
839
+ emitter.emit(None, "run with `RUST_BACKTRACE=1` for a backtrace",
840
+ None, diagnostic::Note);
841
+ }
842
843
println!("{}", str::from_utf8(&data.lock().unwrap()).unwrap());
844
0 commit comments