diff options
| author | kennytm <kennytm@gmail.com> | 2018-12-14 22:10:17 +0800 |
|---|---|---|
| committer | kennytm <kennytm@gmail.com> | 2018-12-14 22:17:43 +0800 |
| commit | 123b72a05e140b7b39bb60b4ef8a24d32091b83d (patch) | |
| tree | ed708bebd7b87b2b6b942e539d7af4503019b671 /src/test/rustdoc-ui | |
| parent | 7ec1faa27a83038dc4df2a3a916f0dc5e99cdf0d (diff) | |
| parent | 6057147fde962f2369c61f8dbf74dd2b1b2ce239 (diff) | |
| download | rust-123b72a05e140b7b39bb60b4ef8a24d32091b83d.tar.gz rust-123b72a05e140b7b39bb60b4ef8a24d32091b83d.zip | |
Rollup merge of #56748 - kinnison:kinnison/fix-56734, r=dtolnay
Update panic message to be clearer about env-vars Esteban Kuber requested that the panic message make it clear that `RUST_BACKTRACE=1` is an environment variable. This change makes that clear. I understand that this may simply be closed if the concept isn't accepted, and I'd be fine with that :-) Fixes #56734
Diffstat (limited to 'src/test/rustdoc-ui')
| -rw-r--r-- | src/test/rustdoc-ui/failed-doctest-output.stdout | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/rustdoc-ui/failed-doctest-output.stdout b/src/test/rustdoc-ui/failed-doctest-output.stdout index cd19099647c..bd6fa1f84b4 100644 --- a/src/test/rustdoc-ui/failed-doctest-output.stdout +++ b/src/test/rustdoc-ui/failed-doctest-output.stdout @@ -13,13 +13,13 @@ error[E0425]: cannot find value `no` in this scope | ^^ not found in this scope thread '$DIR/failed-doctest-output.rs - OtherStruct (line 27)' panicked at 'couldn't compile the test', src/librustdoc/test.rs:326:13 -note: Run with `RUST_BACKTRACE=1` for a backtrace. +note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace. ---- $DIR/failed-doctest-output.rs - SomeStruct (line 21) stdout ---- thread '$DIR/failed-doctest-output.rs - SomeStruct (line 21)' panicked at 'test executable failed: thread 'main' panicked at 'oh no', $DIR/failed-doctest-output.rs:3:1 -note: Run with `RUST_BACKTRACE=1` for a backtrace. +note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace. ', src/librustdoc/test.rs:361:17 |
