Skip to content

Commit 23de376

Browse files
authored
Rollup merge of #61403 - estebank:test-cleanup, r=petrochenkov
Remove unnecessary `-Z continue-parse-after-error` from tests r? @petrochenkov
2 parents c081974 + d6ea6b9 commit 23de376

File tree

73 files changed

+142
-214
lines changed

Some content is hidden

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

73 files changed

+142
-214
lines changed

src/test/ui/extern/extern-const.fixed

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
// run-rustfix
88
// ignore-wasm32 no external library to link to.
9-
// compile-flags: -g -Z continue-parse-after-error
9+
// compile-flags: -g
1010
#![feature(rustc_private)]
1111
extern crate libc;
1212

src/test/ui/extern/extern-const.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
// run-rustfix
88
// ignore-wasm32 no external library to link to.
9-
// compile-flags: -g -Z continue-parse-after-error
9+
// compile-flags: -g
1010
#![feature(rustc_private)]
1111
extern crate libc;
1212

src/test/ui/fmt/format-string-error-2.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// compile-flags: -Z continue-parse-after-error
21
// ignore-tidy-tab
32

43
fn main() {

src/test/ui/fmt/format-string-error-2.stderr

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
error: incorrect unicode escape sequence
2-
--> $DIR/format-string-error-2.rs:78:20
2+
--> $DIR/format-string-error-2.rs:77:20
33
|
44
LL | println!("\x7B}\u8 {", 1);
55
| ^^-
66
| |
77
| help: format of unicode escape sequences uses braces: `\u{8}`
88

99
error: invalid format string: expected `'}'`, found `'a'`
10-
--> $DIR/format-string-error-2.rs:6:5
10+
--> $DIR/format-string-error-2.rs:5:5
1111
|
1212
LL | format!("{
1313
| - because of this opening brace
@@ -17,7 +17,7 @@ LL | a");
1717
= note: if you intended to print `{`, you can escape it using `{{`
1818

1919
error: invalid format string: expected `'}'`, found `'b'`
20-
--> $DIR/format-string-error-2.rs:10:5
20+
--> $DIR/format-string-error-2.rs:9:5
2121
|
2222
LL | format!("{ \
2323
| - because of this opening brace
@@ -28,7 +28,7 @@ LL | b");
2828
= note: if you intended to print `{`, you can escape it using `{{`
2929

3030
error: invalid format string: expected `'}'`, found `'\'`
31-
--> $DIR/format-string-error-2.rs:12:18
31+
--> $DIR/format-string-error-2.rs:11:18
3232
|
3333
LL | format!(r#"{ \
3434
| - ^ expected `}` in format string
@@ -38,7 +38,7 @@ LL | format!(r#"{ \
3838
= note: if you intended to print `{`, you can escape it using `{{`
3939

4040
error: invalid format string: expected `'}'`, found `'\'`
41-
--> $DIR/format-string-error-2.rs:16:18
41+
--> $DIR/format-string-error-2.rs:15:18
4242
|
4343
LL | format!(r#"{ \n
4444
| - ^ expected `}` in format string
@@ -48,7 +48,7 @@ LL | format!(r#"{ \n
4848
= note: if you intended to print `{`, you can escape it using `{{`
4949

5050
error: invalid format string: expected `'}'`, found `'e'`
51-
--> $DIR/format-string-error-2.rs:22:5
51+
--> $DIR/format-string-error-2.rs:21:5
5252
|
5353
LL | format!("{ \n
5454
| - because of this opening brace
@@ -59,7 +59,7 @@ LL | e");
5959
= note: if you intended to print `{`, you can escape it using `{{`
6060

6161
error: invalid format string: expected `'}'`, found `'a'`
62-
--> $DIR/format-string-error-2.rs:26:5
62+
--> $DIR/format-string-error-2.rs:25:5
6363
|
6464
LL | {
6565
| - because of this opening brace
@@ -69,7 +69,7 @@ LL | a");
6969
= note: if you intended to print `{`, you can escape it using `{{`
7070

7171
error: invalid format string: expected `'}'`, found `'a'`
72-
--> $DIR/format-string-error-2.rs:30:5
72+
--> $DIR/format-string-error-2.rs:29:5
7373
|
7474
LL | {
7575
| - because of this opening brace
@@ -79,7 +79,7 @@ LL | a
7979
= note: if you intended to print `{`, you can escape it using `{{`
8080

8181
error: invalid format string: expected `'}'`, found `'b'`
82-
--> $DIR/format-string-error-2.rs:36:5
82+
--> $DIR/format-string-error-2.rs:35:5
8383
|
8484
LL | { \
8585
| - because of this opening brace
@@ -90,7 +90,7 @@ LL | b");
9090
= note: if you intended to print `{`, you can escape it using `{{`
9191

9292
error: invalid format string: expected `'}'`, found `'b'`
93-
--> $DIR/format-string-error-2.rs:41:5
93+
--> $DIR/format-string-error-2.rs:40:5
9494
|
9595
LL | { \
9696
| - because of this opening brace
@@ -101,7 +101,7 @@ LL | b \
101101
= note: if you intended to print `{`, you can escape it using `{{`
102102

103103
error: invalid format string: expected `'}'`, found `'\'`
104-
--> $DIR/format-string-error-2.rs:46:8
104+
--> $DIR/format-string-error-2.rs:45:8
105105
|
106106
LL | raw { \
107107
| - ^ expected `}` in format string
@@ -111,7 +111,7 @@ LL | raw { \
111111
= note: if you intended to print `{`, you can escape it using `{{`
112112

113113
error: invalid format string: expected `'}'`, found `'\'`
114-
--> $DIR/format-string-error-2.rs:51:8
114+
--> $DIR/format-string-error-2.rs:50:8
115115
|
116116
LL | raw { \n
117117
| - ^ expected `}` in format string
@@ -121,7 +121,7 @@ LL | raw { \n
121121
= note: if you intended to print `{`, you can escape it using `{{`
122122

123123
error: invalid format string: expected `'}'`, found `'e'`
124-
--> $DIR/format-string-error-2.rs:58:5
124+
--> $DIR/format-string-error-2.rs:57:5
125125
|
126126
LL | { \n
127127
| - because of this opening brace
@@ -132,7 +132,7 @@ LL | e");
132132
= note: if you intended to print `{`, you can escape it using `{{`
133133

134134
error: invalid format string: expected `'}'`, found `'a'`
135-
--> $DIR/format-string-error-2.rs:68:5
135+
--> $DIR/format-string-error-2.rs:67:5
136136
|
137137
LL | {
138138
| - because of this opening brace
@@ -142,13 +142,13 @@ LL | asdf}
142142
= note: if you intended to print `{`, you can escape it using `{{`
143143

144144
error: 1 positional argument in format string, but no arguments were given
145-
--> $DIR/format-string-error-2.rs:71:17
145+
--> $DIR/format-string-error-2.rs:70:17
146146
|
147147
LL | println!("\t{}");
148148
| ^^
149149

150150
error: invalid format string: expected `'}'` but string was terminated
151-
--> $DIR/format-string-error-2.rs:75:27
151+
--> $DIR/format-string-error-2.rs:74:27
152152
|
153153
LL | println!("\x7B}\u{8} {", 1);
154154
| -^ expected `'}'` in format string
@@ -158,15 +158,15 @@ LL | println!("\x7B}\u{8} {", 1);
158158
= note: if you intended to print `{`, you can escape it using `{{`
159159

160160
error: invalid format string: unmatched `}` found
161-
--> $DIR/format-string-error-2.rs:82:21
161+
--> $DIR/format-string-error-2.rs:81:21
162162
|
163163
LL | println!(r#"\x7B}\u{8} {"#, 1);
164164
| ^ unmatched `}` in format string
165165
|
166166
= note: if you intended to print `}`, you can escape it using `}}`
167167

168168
error: invalid format string: unmatched `}` found
169-
--> $DIR/format-string-error-2.rs:85:21
169+
--> $DIR/format-string-error-2.rs:84:21
170170
|
171171
LL | println!(r#"\x7B}\u8 {"#, 1);
172172
| ^ unmatched `}` in format string

src/test/ui/impl-trait/impl-trait-plus-priority.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z parse-only -Z continue-parse-after-error
1+
// compile-flags: -Z parse-only
22

33
fn f() -> impl A + {} // OK
44
fn f() -> impl A + B {} // OK

src/test/ui/issues/issue-28433.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// compile-flags: -Z continue-parse-after-error
2-
31
enum Bird {
42
pub Duck,
53
//~^ ERROR unnecessary visibility qualifier

src/test/ui/issues/issue-28433.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
error: unnecessary visibility qualifier
2-
--> $DIR/issue-28433.rs:4:5
2+
--> $DIR/issue-28433.rs:2:5
33
|
44
LL | pub Duck,
55
| ^^^ `pub` not permitted here
66

77
error: unnecessary visibility qualifier
8-
--> $DIR/issue-28433.rs:7:5
8+
--> $DIR/issue-28433.rs:5:5
99
|
1010
LL | pub(crate) Dove
1111
| ^^^^^^^^^^ `pub` not permitted here

src/test/ui/issues/issue-36638.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// compile-flags: -Z continue-parse-after-error
2-
31
struct Foo<Self>(Self);
42
//~^ ERROR expected identifier, found keyword `Self`
53
//~^^ ERROR E0392

src/test/ui/issues/issue-36638.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
error: expected identifier, found keyword `Self`
2-
--> $DIR/issue-36638.rs:3:12
2+
--> $DIR/issue-36638.rs:1:12
33
|
44
LL | struct Foo<Self>(Self);
55
| ^^^^ expected identifier, found keyword
66

77
error: expected identifier, found keyword `Self`
8-
--> $DIR/issue-36638.rs:7:11
8+
--> $DIR/issue-36638.rs:5:11
99
|
1010
LL | trait Bar<Self> {}
1111
| ^^^^ expected identifier, found keyword
1212

1313
error[E0392]: parameter `Self` is never used
14-
--> $DIR/issue-36638.rs:3:12
14+
--> $DIR/issue-36638.rs:1:12
1515
|
1616
LL | struct Foo<Self>(Self);
1717
| ^^^^ unused parameter

src/test/ui/parser/associated-types-project-from-hrtb-explicit.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// compile-flags: -Z continue-parse-after-error
2-
31
// Test you can't use a higher-ranked trait bound inside of a qualified
42
// path (just won't parse).
53

0 commit comments

Comments
 (0)