Auto merge of #68633 - JohnTitor:avoid-ice-in-diagnostics, r=estebank

Avoid ICE in macro's diagnostics

Fixes #68629

r? @estebank
This commit is contained in:
bors 2020-01-31 21:51:28 +00:00
commit cdd41ea5fc
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(ؼ;