diff --git a/src/test/ui/did_you_mean/issue-40396.stderr b/src/test/ui/did_you_mean/issue-40396.stderr index f4bc5aef82d..d2938435ece 100644 --- a/src/test/ui/did_you_mean/issue-40396.stderr +++ b/src/test/ui/did_you_mean/issue-40396.stderr @@ -31,11 +31,11 @@ help: use `::<...>` instead of `<...>` to specify type or const arguments LL | (0..13).collect::(); | ++ -error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, or an operator, found `,` +error: expected one of `!`, `.`, `::`, `;`, `?`, `else`, `{`, or an operator, found `,` --> $DIR/issue-40396.rs:11:43 | LL | let x = std::collections::HashMap::new(); - | ^ expected one of 7 possible tokens + | ^ expected one of 8 possible tokens | help: use `::<...>` instead of `<...>` to specify type or const arguments | diff --git a/src/test/ui/parser/attr-stmt-expr-attr-bad.stderr b/src/test/ui/parser/attr-stmt-expr-attr-bad.stderr index 6dfe7aad6ea..cec6980c008 100644 --- a/src/test/ui/parser/attr-stmt-expr-attr-bad.stderr +++ b/src/test/ui/parser/attr-stmt-expr-attr-bad.stderr @@ -12,11 +12,11 @@ error: expected expression, found `]` LL | #[cfg(FALSE)] fn e() { let _ = [#[attr]]; } | ^ expected expression -error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, or an operator, found `#` +error: expected one of `!`, `.`, `::`, `;`, `?`, `else`, `{`, or an operator, found `#` --> $DIR/attr-stmt-expr-attr-bad.rs:9:35 | LL | #[cfg(FALSE)] fn e() { let _ = foo#[attr](); } - | ^ expected one of 7 possible tokens + | ^ expected one of 8 possible tokens error: an inner attribute is not permitted in this context --> $DIR/attr-stmt-expr-attr-bad.rs:11:36 @@ -70,11 +70,11 @@ LL | #[cfg(FALSE)] fn e() { let _ = -#![attr] 0; } | = note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files. Outer attributes, like `#[test]`, annotate the item following them. -error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, or an operator, found `#` +error: expected one of `!`, `.`, `::`, `;`, `?`, `else`, `{`, or an operator, found `#` --> $DIR/attr-stmt-expr-attr-bad.rs:23:34 | LL | #[cfg(FALSE)] fn e() { let _ = x #![attr] as Y; } - | ^ expected one of 7 possible tokens + | ^ expected one of 8 possible tokens error: an inner attribute is not permitted in this context --> $DIR/attr-stmt-expr-attr-bad.rs:25:35 @@ -372,11 +372,11 @@ error: unexpected token: `#` LL | #[cfg(FALSE)] fn e() { let _ = x.#![attr]foo(); } | ^ -error: expected one of `.`, `;`, `?`, or an operator, found `#` +error: expected one of `.`, `;`, `?`, `else`, or an operator, found `#` --> $DIR/attr-stmt-expr-attr-bad.rs:100:34 | LL | #[cfg(FALSE)] fn e() { let _ = x.#![attr]foo(); } - | ^ expected one of `.`, `;`, `?`, or an operator + | ^ expected one of `.`, `;`, `?`, `else`, or an operator error: unexpected token: `#` --> $DIR/attr-stmt-expr-attr-bad.rs:103:34 @@ -384,11 +384,11 @@ error: unexpected token: `#` LL | #[cfg(FALSE)] fn e() { let _ = x.#[attr]foo(); } | ^ -error: expected one of `.`, `;`, `?`, or an operator, found `#` +error: expected one of `.`, `;`, `?`, `else`, or an operator, found `#` --> $DIR/attr-stmt-expr-attr-bad.rs:103:34 | LL | #[cfg(FALSE)] fn e() { let _ = x.#[attr]foo(); } - | ^ expected one of `.`, `;`, `?`, or an operator + | ^ expected one of `.`, `;`, `?`, `else`, or an operator error: expected statement after outer attribute --> $DIR/attr-stmt-expr-attr-bad.rs:108:37 diff --git a/src/test/ui/parser/issue-72253.rs b/src/test/ui/parser/issue-72253.rs index 6f9af73b039..1446a796fa0 100644 --- a/src/test/ui/parser/issue-72253.rs +++ b/src/test/ui/parser/issue-72253.rs @@ -1,6 +1,6 @@ fn main() { let a = std::process::Command::new("echo") .arg("1") - ,arg("2") //~ ERROR expected one of `.`, `;`, `?`, or an operator, found `,` + ,arg("2") //~ ERROR expected one of `.`, `;`, `?`, `else`, or an operator, found `,` .output(); } diff --git a/src/test/ui/parser/issue-72253.stderr b/src/test/ui/parser/issue-72253.stderr index 3819fd92a9e..477fa09f495 100644 --- a/src/test/ui/parser/issue-72253.stderr +++ b/src/test/ui/parser/issue-72253.stderr @@ -1,8 +1,8 @@ -error: expected one of `.`, `;`, `?`, or an operator, found `,` +error: expected one of `.`, `;`, `?`, `else`, or an operator, found `,` --> $DIR/issue-72253.rs:4:9 | LL | .arg("1") - | - expected one of `.`, `;`, `?`, or an operator + | - expected one of `.`, `;`, `?`, `else`, or an operator LL | ,arg("2") | ^ unexpected token diff --git a/src/test/ui/parser/issue-84117.rs b/src/test/ui/parser/issue-84117.rs index 0f200735915..919585877cf 100644 --- a/src/test/ui/parser/issue-84117.rs +++ b/src/test/ui/parser/issue-84117.rs @@ -2,8 +2,8 @@ fn main() { let outer_local:e_outer<&str, { let inner_local:e_inner<&str, } //~^ ERROR expected one of `>`, a const expression //~| ERROR expected one of `>`, a const expression, lifetime, or type, found `}` - //~| ERROR expected one of `!`, `.`, `::`, `;`, `?`, `{`, or an operator, found `,` - //~| ERROR expected one of `!`, `.`, `::`, `;`, `?`, `{`, or an operator, found `,` - //~| ERROR expected one of `!`, `.`, `::`, `;`, `?`, `{`, or an operator, found `,` + //~| ERROR expected one of `!`, `.`, `::`, `;`, `?`, `else`, `{`, or an operator, found `,` + //~| ERROR expected one of `!`, `.`, `::`, `;`, `?`, `else`, `{`, or an operator, found `,` + //~| ERROR expected one of `!`, `.`, `::`, `;`, `?`, `else`, `{`, or an operator, found `,` } //~^ ERROR expected one of `,`, `:`, `=`, or `>`, found `}` diff --git a/src/test/ui/parser/issue-84117.stderr b/src/test/ui/parser/issue-84117.stderr index d667a4977d0..5b9cc53baa5 100644 --- a/src/test/ui/parser/issue-84117.stderr +++ b/src/test/ui/parser/issue-84117.stderr @@ -7,11 +7,11 @@ LL | let outer_local:e_outer<&str, { let inner_local:e_inner<&str, } | | help: use `=` if you meant to assign | while parsing the type for `inner_local` -error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, or an operator, found `,` +error: expected one of `!`, `.`, `::`, `;`, `?`, `else`, `{`, or an operator, found `,` --> $DIR/issue-84117.rs:2:65 | LL | let outer_local:e_outer<&str, { let inner_local:e_inner<&str, } - | ^ expected one of 7 possible tokens + | ^ expected one of 8 possible tokens error: expected one of `,`, `:`, `=`, or `>`, found `}` --> $DIR/issue-84117.rs:8:1 @@ -33,17 +33,17 @@ LL | let outer_local:e_outer<&str, { let inner_local:e_inner<&str, } | | help: use `=` if you meant to assign | while parsing the type for `inner_local` -error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, or an operator, found `,` +error: expected one of `!`, `.`, `::`, `;`, `?`, `else`, `{`, or an operator, found `,` --> $DIR/issue-84117.rs:2:65 | LL | let outer_local:e_outer<&str, { let inner_local:e_inner<&str, } - | ^ expected one of 7 possible tokens + | ^ expected one of 8 possible tokens -error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, or an operator, found `,` +error: expected one of `!`, `.`, `::`, `;`, `?`, `else`, `{`, or an operator, found `,` --> $DIR/issue-84117.rs:2:33 | LL | let outer_local:e_outer<&str, { let inner_local:e_inner<&str, } - | ^ expected one of 7 possible tokens + | ^ expected one of 8 possible tokens error: aborting due to 6 previous errors diff --git a/src/test/ui/parser/macro/issue-37234.stderr b/src/test/ui/parser/macro/issue-37234.stderr index f0ec79e5357..8d9636d401c 100644 --- a/src/test/ui/parser/macro/issue-37234.stderr +++ b/src/test/ui/parser/macro/issue-37234.stderr @@ -1,8 +1,8 @@ -error: expected one of `.`, `;`, `?`, or an operator, found `""` +error: expected one of `.`, `;`, `?`, `else`, or an operator, found `""` --> $DIR/issue-37234.rs:3:19 | LL | let x = 5 ""; - | ^^ expected one of `.`, `;`, `?`, or an operator + | ^^ expected one of `.`, `;`, `?`, `else`, or an operator ... LL | failed!(); | ---------- in this macro invocation diff --git a/src/test/ui/parser/missing-semicolon.rs b/src/test/ui/parser/missing-semicolon.rs index a24dfa761a6..f68d177c01f 100644 --- a/src/test/ui/parser/missing-semicolon.rs +++ b/src/test/ui/parser/missing-semicolon.rs @@ -1,6 +1,6 @@ macro_rules! m { ($($e1:expr),*; $($e2:expr),*) => { - $( let x = $e1 )*; //~ ERROR expected one of `.`, `;`, `?`, or + $( let x = $e1 )*; //~ ERROR expected one of `.`, `;`, `?`, `else`, or $( println!("{}", $e2) )*; } } diff --git a/src/test/ui/parser/missing-semicolon.stderr b/src/test/ui/parser/missing-semicolon.stderr index 68f0f440c46..72f76b6fe3f 100644 --- a/src/test/ui/parser/missing-semicolon.stderr +++ b/src/test/ui/parser/missing-semicolon.stderr @@ -1,8 +1,8 @@ -error: expected one of `.`, `;`, `?`, or an operator, found keyword `let` +error: expected one of `.`, `;`, `?`, `else`, or an operator, found keyword `let` --> $DIR/missing-semicolon.rs:3:12 | LL | $( let x = $e1 )*; - | ^^^ expected one of `.`, `;`, `?`, or an operator + | ^^^ expected one of `.`, `;`, `?`, `else`, or an operator ... LL | fn main() { m!(0, 0; 0, 0); } | --------------- in this macro invocation diff --git a/src/test/ui/parser/range-3.rs b/src/test/ui/parser/range-3.rs index 931839fb282..2c917a24e90 100644 --- a/src/test/ui/parser/range-3.rs +++ b/src/test/ui/parser/range-3.rs @@ -2,5 +2,5 @@ pub fn main() { let r = 1..2..3; - //~^ ERROR expected one of `.`, `;`, `?`, or an operator, found `..` + //~^ ERROR expected one of `.`, `;`, `?`, `else`, or an operator, found `..` } diff --git a/src/test/ui/parser/range-3.stderr b/src/test/ui/parser/range-3.stderr index f866ea59983..340167f1804 100644 --- a/src/test/ui/parser/range-3.stderr +++ b/src/test/ui/parser/range-3.stderr @@ -1,8 +1,8 @@ -error: expected one of `.`, `;`, `?`, or an operator, found `..` +error: expected one of `.`, `;`, `?`, `else`, or an operator, found `..` --> $DIR/range-3.rs:4:17 | LL | let r = 1..2..3; - | ^^ expected one of `.`, `;`, `?`, or an operator + | ^^ expected one of `.`, `;`, `?`, `else`, or an operator error: aborting due to previous error diff --git a/src/test/ui/parser/range-4.rs b/src/test/ui/parser/range-4.rs index 20af9567205..c970c96de84 100644 --- a/src/test/ui/parser/range-4.rs +++ b/src/test/ui/parser/range-4.rs @@ -2,5 +2,5 @@ pub fn main() { let r = ..1..2; - //~^ ERROR expected one of `.`, `;`, `?`, or an operator, found `..` + //~^ ERROR expected one of `.`, `;`, `?`, `else`, or an operator, found `..` } diff --git a/src/test/ui/parser/range-4.stderr b/src/test/ui/parser/range-4.stderr index dcb85170c1d..720d489389b 100644 --- a/src/test/ui/parser/range-4.stderr +++ b/src/test/ui/parser/range-4.stderr @@ -1,8 +1,8 @@ -error: expected one of `.`, `;`, `?`, or an operator, found `..` +error: expected one of `.`, `;`, `?`, `else`, or an operator, found `..` --> $DIR/range-4.rs:4:16 | LL | let r = ..1..2; - | ^^ expected one of `.`, `;`, `?`, or an operator + | ^^ expected one of `.`, `;`, `?`, `else`, or an operator error: aborting due to previous error