diff options
| author | bors <bors@rust-lang.org> | 2022-05-04 21:16:28 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-05-04 21:16:28 +0000 |
| commit | 4c60a0ea5b2385d7400df9db1ad04e96f2a4c154 (patch) | |
| tree | 72b40de72fc69c1bd70403e199f2001c9556fddd /src/test/ui/consts | |
| parent | 343889b7234bf786e2bc673029467052f22fca08 (diff) | |
| parent | baa18c027a9f001a560d3b9537528cf8d9a53a05 (diff) | |
| download | rust-4c60a0ea5b2385d7400df9db1ad04e96f2a4c154.tar.gz rust-4c60a0ea5b2385d7400df9db1ad04e96f2a4c154.zip | |
Auto merge of #96546 - nnethercote:overhaul-MacArgs, r=petrochenkov
Overhaul `MacArgs` Motivation: - Clarify some code that I found hard to understand. - Eliminate one use of three places where `TokenKind::Interpolated` values are created. r? `@petrochenkov`
Diffstat (limited to 'src/test/ui/consts')
| -rw-r--r-- | src/test/ui/consts/issue-90878-2.rs | 2 | ||||
| -rw-r--r-- | src/test/ui/consts/issue-90878-2.stderr | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/consts/issue-90878-2.rs b/src/test/ui/consts/issue-90878-2.rs index ac5640646a8..e5bcecce6ee 100644 --- a/src/test/ui/consts/issue-90878-2.rs +++ b/src/test/ui/consts/issue-90878-2.rs @@ -1,4 +1,4 @@ - #![l=|x|[b;x ]] //~ ERROR unexpected token: `|x| [b; x]` + #![l=|x|[b;x ]] //~ ERROR unexpected expression: `|x| [b; x]` //~^ ERROR cannot find attribute `l` in this scope // notice the space at the start, diff --git a/src/test/ui/consts/issue-90878-2.stderr b/src/test/ui/consts/issue-90878-2.stderr index 4ccce36eedf..71b8d21fb4d 100644 --- a/src/test/ui/consts/issue-90878-2.stderr +++ b/src/test/ui/consts/issue-90878-2.stderr @@ -1,4 +1,4 @@ -error: unexpected token: `|x| [b; x]` +error: unexpected expression: `|x| [b; x]` --> $DIR/issue-90878-2.rs:1:7 | LL | #![l=|x|[b;x ]] |
