summary refs log tree commit diff
path: root/tests/ui/macros/macro-in-expression-context.fixed
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-04-17 17:08:58 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-10-28 14:12:45 +1100
commita201fab20881499d79e5694ee8f195ce50c5b724 (patch)
tree83fff1d41978e11bb50c04d34718c7205a854e9c /tests/ui/macros/macro-in-expression-context.fixed
parentdf4ca44d3fbc9301ee17f30f4d474e6ae4b05252 (diff)
downloadrust-a201fab20881499d79e5694ee8f195ce50c5b724.tar.gz
rust-a201fab20881499d79e5694ee8f195ce50c5b724.zip
Tweak `expand_incomplete_parse` warning.
By using `token_descr`, as is done for many other errors, we can get
slightly better descriptions in error messages, e.g.
"macro expansion ignores token `let` and any following" becomes
"macro expansion ignores keyword `let` and any tokens following".

This will be more important once invisible delimiters start being
mentioned in error messages -- without this commit, that leads to error
messages such as "error at ``" because invisible delimiters are
pretty printed as an empty string.
Diffstat (limited to 'tests/ui/macros/macro-in-expression-context.fixed')
-rw-r--r--tests/ui/macros/macro-in-expression-context.fixed2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/macros/macro-in-expression-context.fixed b/tests/ui/macros/macro-in-expression-context.fixed
index f4d04ca37bf..7c830707ffd 100644
--- a/tests/ui/macros/macro-in-expression-context.fixed
+++ b/tests/ui/macros/macro-in-expression-context.fixed
@@ -11,7 +11,7 @@ macro_rules! foo {
         //~| NOTE `#[warn(semicolon_in_expressions_from_macros)]` on by default
         assert_eq!("B", "B");
     }
-    //~^^ ERROR macro expansion ignores token `assert_eq` and any following
+    //~^^ ERROR macro expansion ignores `assert_eq` and any tokens following
     //~| NOTE the usage of `foo!` is likely invalid in expression context
 }