Skip to content

Commit 211c933

Browse files
committed
Replace remaining instances of error-pattern with //~?
1 parent 3c95364 commit 211c933

File tree

197 files changed

+443
-246
lines changed

Some content is hidden

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

197 files changed

+443
-246
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//@ run-fail
2-
//@ error-pattern:index out of bounds
32
//@ needs-subprocess
43

54
use std::mem::size_of;
@@ -8,3 +7,5 @@ fn main() {
87
let xs = [1, 2, 3];
98
xs[usize::MAX / size_of::<isize>() + 1];
109
}
10+
11+
//~? ERROR index out of bounds

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

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

33
//@ run-fail
4-
//@ error-pattern:index out of bounds
54
//@ needs-subprocess
65

76
#[allow(unconditional_panic)]
@@ -11,3 +10,5 @@ fn main() {
1110
let _b = (*a)[3];
1211
}
1312
}
13+
14+
//~? ERROR index out of bounds

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//@ run-fail
2-
//@ error-pattern:index out of bounds: the len is 1 but the index is 2
32
//@ needs-subprocess
43

54
fn main() {
@@ -10,3 +9,5 @@ fn main() {
109

1110
assert_eq!(v[x + 2], 20);
1211
}
12+
13+
//~? ERROR index out of bounds: the len is 1 but the index is 2

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
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
75
//@ edition:2018
86

97
#![feature(coroutines, coroutine_trait)]
@@ -43,3 +41,6 @@ mod executor {
4341
}
4442
}
4543
}
44+
45+
//~? ERROR thread 'main' panicked
46+
//~? ERROR `async fn` resumed after completion

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
//@ run-fail
55
//@ needs-unwind
6-
//@ error-pattern: thread 'main' panicked
7-
//@ error-pattern: `async fn` resumed after panicking
86
//@ edition:2018
97

108
#![feature(coroutines, coroutine_trait)]
@@ -50,3 +48,6 @@ mod executor {
5048
}
5149
}
5250
}
51+
52+
//~? ERROR thread 'main' panicked
53+
//~? ERROR `async fn` resumed after panicking

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

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

55
//@ run-fail
6-
//@ error-pattern:coroutine resumed after completion
76
//@ edition:2018
87

98
#![feature(coroutines, coroutine_trait, stmt_expr_attributes)]
@@ -19,3 +18,5 @@ fn main() {
1918
Pin::new(&mut g).resume(()); // Completes here.
2019
Pin::new(&mut g).resume(()); // Panics here.
2120
}
21+
22+
//~? ERROR coroutine resumed after completion

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//@ run-fail
2-
//@ error-pattern:quux
32
//@ needs-subprocess
43

54
fn foo() -> ! {
@@ -9,3 +8,5 @@ fn foo() -> ! {
98
fn main() {
109
foo() == foo(); // these types wind up being defaulted to ()
1110
}
11+
12+
//~? ERROR quux

tests/ui/binop/binop-panic.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//@ run-fail
2-
//@ error-pattern:quux
32
//@ needs-subprocess
43

54
fn my_err(s: String) -> ! {
@@ -10,3 +9,5 @@ fn my_err(s: String) -> ! {
109
fn main() {
1110
3_usize == my_err("bye".to_string());
1211
}
12+
13+
//~? ERROR quux
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
//@ run-fail
2-
//@ error-pattern:panic 1
32
//@ needs-subprocess
43

54
fn main() {
65
let x = 2;
76
let y = &x;
87
panic!("panic 1");
98
}
9+
10+
//~? ERROR panic 1

tests/ui/borrowck/issue-28934.rs

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

44
//@ run-fail
5-
//@ error-pattern:explicit panic
65
//@ needs-subprocess
76

87
struct Parser<'i: 't, 't>(&'i u8, &'t u8);
@@ -23,3 +22,5 @@ fn main() {
2322
let x = 0u8;
2423
Parser(&x, &x).parse_nested_block(|input| input.expect_exhausted()).unwrap();
2524
}
25+
26+
//~? ERROR explicit panic

0 commit comments

Comments
 (0)