Skip to content
Myr

Update stack backtrace disabled notice

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Tolnay · committed by David Tolnay · parent 68897df · Browse files · 2 files+7 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+7 added−4 removed

  • tests:+6 added−3 removed
  • other:+1 added−1 removed

2 files+7 added−4 removed

modified:src/error.rs+1 added-1 removed
707 unmodified lines
708 }709 BacktraceStatus::Disabled => {710 writeln!(711 f,712 "\nBacktrace disabled; run with RUST_LIB_BACKTRACE=1 environment variable to display a backtrace"712 "\nStack backtrace:\n Run with RUST_LIB_BACKTRACE=1 env variable to display a backtrace"713 )?;714 }715 _ => {}716 }
64 unmodified lines
modified:tests/test_fmt.rs+6 added-3 removed
13 unmodified lines
1415const EXPECTED_DEBUG_F: &str = "\16oh no!1718Backtrace disabled; run with RUST_LIB_BACKTRACE=1 environment variable to display a backtrace18Stack backtrace:19 Run with RUST_LIB_BACKTRACE=1 env variable to display a backtrace20";2122const EXPECTED_DEBUG_G: &str = "\23f failed2425Caused by:26 oh no!2727Backtrace disabled; run with RUST_LIB_BACKTRACE=1 environment variable to display a backtrace28Stack backtrace:29 Run with RUST_LIB_BACKTRACE=1 env variable to display a backtrace30";3132const EXPECTED_DEBUG_H: &str = "\33g failed
1 unmodified line
35Caused by:36 0: f failed37 1: oh no!3837Backtrace disabled; run with RUST_LIB_BACKTRACE=1 environment variable to display a backtrace39Stack backtrace:40 Run with RUST_LIB_BACKTRACE=1 env variable to display a backtrace41";4243#[test]44fn test_display() {
10 unmodified lines