Skip to content

Commit ca0bf4b

Browse files
committed
Selectively replace error-pattern with check-run-result
1 parent 3c95364 commit ca0bf4b

File tree

191 files changed

+188
-237
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

191 files changed

+188
-237
lines changed

tests/ui/array-slice-vec/bounds-check-no-overflow.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//@ run-fail
2-
//@ error-pattern:index out of bounds
2+
//@ check-run-results
33
//@ needs-subprocess
44

55
use std::mem::size_of;

tests/ui/array-slice-vec/dst-raw-slice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Test bounds checking for DST raw slices
22

33
//@ run-fail
4-
//@ error-pattern:index out of bounds
4+
//@ check-run-results
55
//@ needs-subprocess
66

77
#[allow(unconditional_panic)]

tests/ui/array-slice-vec/vec-overrun.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//@ run-fail
2-
//@ error-pattern:index out of bounds: the len is 1 but the index is 2
2+
//@ check-run-results
33
//@ needs-subprocess
44

55
fn main() {

tests/ui/async-await/issues/issue-65419/issue-65419-async-fn-resume-after-completion.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
// be talking about `async fn`s instead.
33

44
//@ run-fail
5-
//@ error-pattern: thread 'main' panicked
6-
//@ error-pattern: `async fn` resumed after completion
5+
//@ check-run-results
76
//@ edition:2018
87

98
#![feature(coroutines, coroutine_trait)]

tests/ui/async-await/issues/issue-65419/issue-65419-async-fn-resume-after-panic.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33

44
//@ run-fail
55
//@ needs-unwind
6-
//@ error-pattern: thread 'main' panicked
7-
//@ error-pattern: `async fn` resumed after panicking
6+
//@ check-run-results
87
//@ edition:2018
98

109
#![feature(coroutines, coroutine_trait)]

tests/ui/async-await/issues/issue-65419/issue-65419-coroutine-resume-after-completion.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// panic when resumed after completion.
44

55
//@ run-fail
6-
//@ error-pattern:coroutine resumed after completion
6+
//@ check-run-results
77
//@ edition:2018
88

99
#![feature(coroutines, coroutine_trait, stmt_expr_attributes)]

tests/ui/binop/binop-fail-3.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//@ run-fail
2-
//@ error-pattern:quux
2+
//@ check-run-results
33
//@ needs-subprocess
44

55
fn foo() -> ! {

tests/ui/binop/binop-panic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//@ run-fail
2-
//@ error-pattern:quux
2+
//@ check-run-results
33
//@ needs-subprocess
44

55
fn my_err(s: String) -> ! {

tests/ui/borrowck/borrowck-local-borrow.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//@ run-fail
2-
//@ error-pattern:panic 1
2+
//@ check-run-results
33
//@ needs-subprocess
44

55
fn main() {

tests/ui/borrowck/issue-28934.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// which were not being considered during the contraction phase.
33

44
//@ run-fail
5-
//@ error-pattern:explicit panic
5+
//@ check-run-results
66
//@ needs-subprocess
77

88
struct Parser<'i: 't, 't>(&'i u8, &'t u8);

0 commit comments

Comments
 (0)