about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2018-10-09 22:02:15 +0200
committerRalf Jung <post@ralfj.de>2018-10-28 11:33:33 +0100
commit5903fdb28184d465c01cd6247d0e8ce0c4128211 (patch)
treec11cd88405d5e868eb5fd9e96177b0645dbe41b2
parentaaa505af02bd7f449690e3febce342e96cc192a8 (diff)
downloadrust-5903fdb28184d465c01cd6247d0e8ce0c4128211.tar.gz
rust-5903fdb28184d465c01cd6247d0e8ce0c4128211.zip
always print backtrace when CTFE_BACKTRACE is set
No point in making the user also enable RUST_LOG
-rw-r--r--src/librustc/mir/interpret/error.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc/mir/interpret/error.rs b/src/librustc/mir/interpret/error.rs
index 4e44587a672..8e025f0d029 100644
--- a/src/librustc/mir/interpret/error.rs
+++ b/src/librustc/mir/interpret/error.rs
@@ -158,7 +158,7 @@ pub struct EvalError<'tcx> {
 impl<'tcx> EvalError<'tcx> {
     pub fn print_backtrace(&mut self) {
         if let Some(ref mut backtrace) = self.backtrace {
-            error!("{}", print_backtrace(&mut *backtrace));
+            eprintln!("{}", print_backtrace(&mut *backtrace));
         }
     }
 }
@@ -206,7 +206,7 @@ impl<'tcx> From<EvalErrorKind<'tcx, u64>> for EvalError<'tcx> {
 
                 if val == "immediate" {
                     // Print it now
-                    error!("{}", print_backtrace(&mut backtrace));
+                    eprintln!("{}", print_backtrace(&mut backtrace));
                     None
                 } else {
                     Some(Box::new(backtrace))