Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upRustc (nightly) panic!s on macro definition #39388
Comments
0x53ee71ebe11e
changed the title
Rust (nightly) panic!s on macro definition
Rustc (nightly) panic!s on macro definition
Jan 29, 2017
sfackler
added
A-macros
I-ICE
labels
Jan 29, 2017
arielb1
added
regression-from-stable-to-beta
T-compiler
labels
Feb 7, 2017
jseyfried
self-assigned this
Feb 8, 2017
jseyfried
referenced this issue
Feb 9, 2017
Merged
parser: fix ICE when parsing token trees after an error #39674
This comment has been minimized.
This comment has been minimized.
|
Fixed in #39674. |
frewsxcv
added a commit
to frewsxcv/rust
that referenced
this issue
Feb 10, 2017
bors
closed this
in
#39674
Feb 10, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
0x53ee71ebe11e commentedJan 29, 2017
•
edited
I tried the following code. Just the macro definition already causes rustc to panic.
I expected this code to generate a macro that would expand in the following way:edit: No, the macro is obviously wrong. I'd expect the compiler to give an error message for
($($b:tt))*, since the*is in the wrong place.But what I got was: