Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arr! with no type loops infinitely in the compiler #30

Closed
pthariensflame opened this issue Dec 15, 2016 · 1 comment
Closed

arr! with no type loops infinitely in the compiler #30

pthariensflame opened this issue Dec 15, 2016 · 1 comment

Comments

@pthariensflame
Copy link

pthariensflame commented Dec 15, 2016

I'm sure this wasn't intentional, but:

rustc 1.15.0-nightly (daf8c1dfc 2016-12-05)
error: recursion limit reached while expanding the macro `arr`
 --> <anon>:5:24
  |
5 |     ($($x:expr,)*) => (arr![$($x),*])
  |                        ^^^^^^^^^^^^^
...
9 |     arr![]
  |     ------ in this macro invocation
millardjn added a commit to millardjn/generic-array that referenced this issue Dec 20, 2016
Added example to arr![] doc
Return a helpful error when empty macro is invoked. Syntax error hack.
Added some test cases to make sure actual zero and unit length arrays weren't broken.
fizyk20 added a commit that referenced this issue Dec 22, 2016
Fix Issue #30 (Empty arr![] compiler error)
@fizyk20
Copy link
Owner

fizyk20 commented Dec 22, 2016

Fixed in #31.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants