Avoid ICE in macro's diagnostics
This commit is contained in:
parent
343432a74d
commit
cef7764a76
5 changed files with 27 additions and 22 deletions
|
|
@ -16,9 +16,8 @@ LL | | Ϥ,
|
|||
|
|
||||
help: change the delimiters to curly braces
|
||||
|
|
||||
LL | y!{
|
||||
LL | Ϥ}
|
||||
|
|
||||
LL | y! { /* items */ }
|
||||
| ^^^^^^^^^^^^^^^
|
||||
help: add a semicolon
|
||||
|
|
||||
LL | Ϥ,;
|
||||
|
|
|
|||
BIN
src/test/ui/parser/issue-68629.rs
Normal file
BIN
src/test/ui/parser/issue-68629.rs
Normal file
Binary file not shown.
BIN
src/test/ui/parser/issue-68629.stderr
Normal file
BIN
src/test/ui/parser/issue-68629.stderr
Normal file
Binary file not shown.
|
|
@ -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(ؼ;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue