about summary refs log tree commit diff
path: root/src/test/ui/compile-fail-migration/traits-issue-23003-overflow.rs
diff options
context:
space:
mode:
authorDavid Wood <david@davidtw.co>2018-08-08 13:31:42 +0200
committerDavid Wood <david@davidtw.co>2018-08-14 10:37:54 +0200
commitfe28bcf1db02afe184e3677ee034b2a5804f2466 (patch)
tree8e9f570b434a3581ac054af973f26b526d7bdf28 /src/test/ui/compile-fail-migration/traits-issue-23003-overflow.rs
parenta8763b5370ed044b6e703981217f074e8ddf1e7c (diff)
downloadrust-fe28bcf1db02afe184e3677ee034b2a5804f2466.tar.gz
rust-fe28bcf1db02afe184e3677ee034b2a5804f2466.zip
Check error-patterns on UI tests. Fixes #52531.
Previously, even if no expected errors were supplied, if a test execution failed
then supplied error patterns would not be checked. This commit modifies the
conditional that determines whether error patterns or expected errors are checked
to remedy this.

Further, this commit modifies the error pattern checking logic so that each pattern
is checked against all lines of the string. This is required for UI tests as the
stderr is in JSON format - all on one line - so in the previous implementation when the
first pattern was found on the first line (which was actually the entire error) then
no other patterns would be found on subsequent lines (as there weren't any).
Diffstat (limited to 'src/test/ui/compile-fail-migration/traits-issue-23003-overflow.rs')
0 files changed, 0 insertions, 0 deletions