diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-12-01 04:49:19 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-01 04:49:19 +0100 |
| commit | 6110d3ebc8224929c8f426def15b9443ffb3258d (patch) | |
| tree | 27600c0d000d6ee236f5fb7e64052b6ed0e560de /src/liballoc/tests | |
| parent | 135ccbaca86ed4b9c0efaf0cd31442eae57ffad7 (diff) | |
| parent | 16bf4f5e1b50773c6b4ec7b7524876440db69d1b (diff) | |
| download | rust-6110d3ebc8224929c8f426def15b9443ffb3258d.tar.gz rust-6110d3ebc8224929c8f426def15b9443ffb3258d.zip | |
Rollup merge of #66503 - thomasetter:panic-error-msg, r=joshtriplett
More useful test error messages on should_panic(expected=...) mismatch Fixes #66304 r? @gilescope Shows both the actual as well as the expected panic value when a test with `should_panic(expected=...)` fails. This makes `should_panic` more consistent with `assert_eq`. I am not sure whether printing the `Any::type_id()` is useful, is there something better that we could print for non-string panic values?
Diffstat (limited to 'src/liballoc/tests')
0 files changed, 0 insertions, 0 deletions
