rustc_errors: hide "in this macro invocation" when redundant, more explicitly.

This commit is contained in:
Eduard-Mihai Burtescu 2019-12-15 17:47:51 +02:00
parent 5eaa9a150d
commit ab080973cb
9 changed files with 53 additions and 68 deletions

View file

@ -33,10 +33,7 @@ error: `$x:expr` may be followed by `=`, which is not allowed for `expr` fragmen
--> $DIR/same-sequence-span.rs:19:1
|
LL | proc_macro_sequence::make_foo!();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
| |
| not allowed after `expr` fragments
| in this macro invocation
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not allowed after `expr` fragments
|
= note: allowed there are: `=>`, `,` or `;`