Avoid ICE in macro's diagnostics

This commit is contained in:
Yuki Okushi 2020-01-29 18:02:58 +09:00
parent 343432a74d
commit cef7764a76
5 changed files with 27 additions and 22 deletions

View file

@ -16,9 +16,8 @@ LL | | Ϥ,
|
help: change the delimiters to curly braces
|
LL | y!{
LL | Ϥ}
|
LL | y! { /* items */ }
| ^^^^^^^^^^^^^^^
help: add a semicolon
|
LL | Ϥ,;

Binary file not shown.

Binary file not shown.

View file

@ -14,8 +14,8 @@ LL | macro_rules! abc(ؼ
|
help: change the delimiters to curly braces
|
LL | macro_rules! abc}
| ^ ^
LL | macro_rules! abc { /* items */ }
| ^^^^^^^^^^^^^^^
help: add a semicolon
|
LL | macro_rules! abc(ؼ;