diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-07-04 10:16:51 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-04-02 16:16:51 +1100 |
| commit | 4c0cbaeb9e799362dd081ff8514f75e23ab8c2f5 (patch) | |
| tree | 68527462ead5fae11c0bf3bf5398b915b999e2ff /tests/ui/macros/syntax-error-recovery.rs | |
| parent | 4d8f7577b5f2f7c72d1e258c07b882d0afcf0956 (diff) | |
| download | rust-4c0cbaeb9e799362dd081ff8514f75e23ab8c2f5.tar.gz rust-4c0cbaeb9e799362dd081ff8514f75e23ab8c2f5.zip | |
Remove `TokenStream::flattened` and `InvisibleOrigin::FlattenToken`.
They are no longer needed. This does slightly worsen the error message for a single test, but that test contains code that is so badly broken that I'm not worried about it.
Diffstat (limited to 'tests/ui/macros/syntax-error-recovery.rs')
| -rw-r--r-- | tests/ui/macros/syntax-error-recovery.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/macros/syntax-error-recovery.rs b/tests/ui/macros/syntax-error-recovery.rs index 6cf9d54e826..e1681ea32a2 100644 --- a/tests/ui/macros/syntax-error-recovery.rs +++ b/tests/ui/macros/syntax-error-recovery.rs @@ -5,14 +5,14 @@ macro_rules! values { $( #[$attr] $token $($inner)? = $value, + //~^ ERROR expected one of `!` or `::`, found `<eof>` )* } }; } -//~^^^^^ ERROR expected one of `(`, `,`, `=`, `{`, or `}`, found `ty` metavariable +//~^^^^^^ ERROR expected one of `(`, `,`, `=`, `{`, or `}`, found `ty` metavariable //~| ERROR macro expansion ignores `ty` metavariable and any tokens following values!(STRING(1) as (String) => cfg(test),); -//~^ ERROR expected one of `!` or `::`, found `<eof>` fn main() {} |
