about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-02-07 03:23:24 +0800
committerGitHub <noreply@github.com>2018-02-07 03:23:24 +0800
commita026e8a972729c7f97e40b78e0904a2cf321f227 (patch)
tree2a78cc862151ac66a610ca069d9452666ff26cc1 /src/rustllvm/RustWrapper.cpp
parent0a3e07dd72f98630b0f1282810a15240d3425170 (diff)
parent61ff3ba5364ae7bbf93be5b892fa7c122d3cfab2 (diff)
downloadrust-a026e8a972729c7f97e40b78e0904a2cf321f227.tar.gz
rust-a026e8a972729c7f97e40b78e0904a2cf321f227.zip
Rollup merge of #47986 - Gilnaa:libtest_relaxed, r=Mark-Simulacrum
libtest: Replace panics with error messages

This replaces explicit panics on failures in libtest with prints to stderr.
Where "failures" == CLI argument parsing and such

Before:
```
$ ./foo-stable --not-an-option
thread 'main' panicked at '"Unrecognized option: \'not-an-option\'"', libtest/lib.rs:251:27
note: Run with `RUST_BACKTRACE=1` for a backtrace.
```

After:
```
$ ./foo-nightly --not-an-option
error: Unrecognized option: 'not-an-option'
```
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions