Skip to content

Commit 5a6fd11

Browse files
authored
Rollup merge of #66007 - estebank:remove-here, r=Centril
Remove "here" from "expected one of X here"
2 parents 7ab50e4 + 52e8ec1 commit 5a6fd11

File tree

132 files changed

+156
-156
lines changed

Some content is hidden

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

132 files changed

+156
-156
lines changed

src/libsyntax/parse/parser/diagnostics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ impl<'a> Parser<'a> {
287287
};
288288
(format!("expected one of {}, found {}", expect, actual),
289289
(self.sess.source_map().next_point(self.prev_span),
290-
format!("expected one of {} here", short_expect)))
290+
format!("expected one of {}", short_expect)))
291291
} else if expected.is_empty() {
292292
(format!("unexpected token: {}", actual),
293293
(self.prev_span, "unexpected token after this".to_string()))

src/test/ui/anon-params-denied-2018.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error: expected one of `:`, `@`, or `|`, found `)`
22
--> $DIR/anon-params-denied-2018.rs:6:15
33
|
44
LL | fn foo(i32);
5-
| ^ expected one of `:`, `@`, or `|` here
5+
| ^ expected one of `:`, `@`, or `|`
66
|
77
= note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
88
help: if this is a `self` type, give it a parameter name
@@ -22,7 +22,7 @@ error: expected one of `:`, `@`, or `|`, found `,`
2222
--> $DIR/anon-params-denied-2018.rs:8:36
2323
|
2424
LL | fn bar_with_default_impl(String, String) {}
25-
| ^ expected one of `:`, `@`, or `|` here
25+
| ^ expected one of `:`, `@`, or `|`
2626
|
2727
= note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
2828
help: if this is a `self` type, give it a parameter name
@@ -42,7 +42,7 @@ error: expected one of `:`, `@`, or `|`, found `)`
4242
--> $DIR/anon-params-denied-2018.rs:8:44
4343
|
4444
LL | fn bar_with_default_impl(String, String) {}
45-
| ^ expected one of `:`, `@`, or `|` here
45+
| ^ expected one of `:`, `@`, or `|`
4646
|
4747
= note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
4848
help: if this was a parameter name, give it a type
@@ -58,7 +58,7 @@ error: expected one of `:`, `@`, or `|`, found `,`
5858
--> $DIR/anon-params-denied-2018.rs:13:22
5959
|
6060
LL | fn baz(a:usize, b, c: usize) -> usize {
61-
| ^ expected one of `:`, `@`, or `|` here
61+
| ^ expected one of `:`, `@`, or `|`
6262
|
6363
= note: anonymous parameters are removed in the 2018 edition (see RFC 1685)
6464
help: if this was a parameter name, give it a type

src/test/ui/async-await/await-keyword/incorrect-syntax-suggestions.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ error: expected one of `.`, `?`, `{`, or an operator, found `}`
130130
--> $DIR/incorrect-syntax-suggestions.rs:134:1
131131
|
132132
LL | match await { await => () }
133-
| ----- - expected one of `.`, `?`, `{`, or an operator here
133+
| ----- - expected one of `.`, `?`, `{`, or an operator
134134
| |
135135
| while parsing this match expression
136136
...

src/test/ui/async-await/no-async-const.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error: expected one of `fn` or `unsafe`, found keyword `const`
22
--> $DIR/no-async-const.rs:5:11
33
|
44
LL | pub async const fn x() {}
5-
| ^^^^^ expected one of `fn` or `unsafe` here
5+
| ^^^^^ expected one of `fn` or `unsafe`
66

77
error: aborting due to previous error
88

src/test/ui/async-await/no-unsafe-async.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ error: expected one of `extern` or `fn`, found keyword `async`
22
--> $DIR/no-unsafe-async.rs:7:12
33
|
44
LL | unsafe async fn g() {}
5-
| ^^^^^ expected one of `extern` or `fn` here
5+
| ^^^^^ expected one of `extern` or `fn`
66

77
error: expected one of `extern`, `fn`, or `{`, found keyword `async`
88
--> $DIR/no-unsafe-async.rs:11:8
99
|
1010
LL | unsafe async fn f() {}
11-
| ^^^^^ expected one of `extern`, `fn`, or `{` here
11+
| ^^^^^ expected one of `extern`, `fn`, or `{`
1212

1313
error: aborting due to 2 previous errors
1414

src/test/ui/can-begin-expr-check.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error: expected one of `.`, `;`, `?`, `}`, or an operator, found keyword `enum`
22
--> $DIR/can-begin-expr-check.rs:19:12
33
|
44
LL | return enum;
5-
| ^^^^ expected one of `.`, `;`, `?`, `}`, or an operator here
5+
| ^^^^ expected one of `.`, `;`, `?`, `}`, or an operator
66

77
error: aborting due to previous error
88

src/test/ui/codemap_tests/bad-format-args.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ error: expected one of `,`, `.`, `?`, or an operator, found `1`
1616
--> $DIR/bad-format-args.rs:4:19
1717
|
1818
LL | format!("", 1 1);
19-
| ^ expected one of `,`, `.`, `?`, or an operator here
19+
| ^ expected one of `,`, `.`, `?`, or an operator
2020

2121
error: aborting due to 3 previous errors
2222

src/test/ui/const-generics/const-expression-parameter.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error: expected one of `,` or `>`, found `+`
22
--> $DIR/const-expression-parameter.rs:13:22
33
|
44
LL | i32_identity::<1 + 2>();
5-
| ^ expected one of `,` or `>` here
5+
| ^ expected one of `,` or `>`
66

77
warning: the feature `const_generics` is incomplete and may cause the compiler to crash
88
--> $DIR/const-expression-parameter.rs:1:12

src/test/ui/did_you_mean/issue-40006.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ error: expected one of `!` or `::`, found `(`
4848
--> $DIR/issue-40006.rs:28:9
4949
|
5050
LL | ::Y ();
51-
| ^ expected one of `!` or `::` here
51+
| ^ expected one of `!` or `::`
5252

5353
error: missing `fn`, `type`, or `const` for impl-item declaration
5454
--> $DIR/issue-40006.rs:32:8

src/test/ui/did_you_mean/issue-54109-and_instead_of_ampersands.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ error: expected one of `!`, `)`, `,`, `.`, `::`, `?`, `{`, or an operator, found
2424
LL | if (a and b) {
2525
| ^^^
2626
| |
27-
| expected one of 8 possible tokens here
27+
| expected one of 8 possible tokens
2828
| help: use `&&` instead of `and` for the boolean operator
2929

3030
error: expected one of `!`, `)`, `,`, `.`, `::`, `?`, `{`, or an operator, found `or`
@@ -33,7 +33,7 @@ error: expected one of `!`, `)`, `,`, `.`, `::`, `?`, `{`, or an operator, found
3333
LL | if (a or b) {
3434
| ^^
3535
| |
36-
| expected one of 8 possible tokens here
36+
| expected one of 8 possible tokens
3737
| help: use `||` instead of `or` for the boolean operator
3838

3939
error: expected one of `!`, `.`, `::`, `?`, `{`, or an operator, found `and`
@@ -42,7 +42,7 @@ error: expected one of `!`, `.`, `::`, `?`, `{`, or an operator, found `and`
4242
LL | while a and b {
4343
| ^^^
4444
| |
45-
| expected one of `!`, `.`, `::`, `?`, `{`, or an operator here
45+
| expected one of `!`, `.`, `::`, `?`, `{`, or an operator
4646
| help: use `&&` instead of `and` for the boolean operator
4747

4848
error: expected one of `!`, `.`, `::`, `?`, `{`, or an operator, found `or`
@@ -51,7 +51,7 @@ error: expected one of `!`, `.`, `::`, `?`, `{`, or an operator, found `or`
5151
LL | while a or b {
5252
| ^^
5353
| |
54-
| expected one of `!`, `.`, `::`, `?`, `{`, or an operator here
54+
| expected one of `!`, `.`, `::`, `?`, `{`, or an operator
5555
| help: use `||` instead of `or` for the boolean operator
5656

5757
error: aborting due to 6 previous errors

0 commit comments

Comments
 (0)