diff options
| author | bors <bors@rust-lang.org> | 2016-11-18 08:24:00 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-11-18 08:24:00 -0800 |
| commit | 195c42c426456e0aa1fe1a8f620e25c9c295754d (patch) | |
| tree | 39446b73876904a265b8a314d61364ee955ff7b9 /src/test/incremental/thinlto | |
| parent | 2a6d02e0925d18db33c29a058df47ed272719c65 (diff) | |
| parent | fb5ccf80fe83653018794562bfc105d6914384ae (diff) | |
| download | rust-195c42c426456e0aa1fe1a8f620e25c9c295754d.tar.gz rust-195c42c426456e0aa1fe1a8f620e25c9c295754d.zip | |
Auto merge of #37749 - keeperofdakeys:should-panic, r=alexcrichton
Improvements to the #[should_panic] feature Add more error checking for the `#[should_panic]` attribute, and print the expected panic string when it does not match. Fixes https://github.com/rust-lang/rust/issues/29000 Eg: ```running 3 tests test test2 ... ok test test1 ... FAILED : Panic did not include expected string 'foo' test test3 ... FAILED failures: ---- test1 stdout ---- thread 'test1' panicked at 'bar', test.rs:7 note: Run with `RUST_BACKTRACE=1` for a backtrace. ---- test3 stdout ---- thread 'test3' panicked at 'bar', test.rs:18 ```
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions
