Skip to content

Rustc runs out of memory when dealing with extremely large array literals in macros #35154

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

Closed
ahicks92 opened this issue Aug 1, 2016 · 1 comment

Comments

@ahicks92
Copy link
Contributor

ahicks92 commented Aug 1, 2016

Playground link: https://is.gd/WsYvhb

This was originally a typo having to do with using a screen reader, which doesn't read exclamations in positions which it decides aren't the ends of sentences well with my currently configured settings. I first observed it locally with 0.10 i686-pc-windows-gnu.

Expected behavior with that version and triple appears to be an error message about the array constant being too large for the current architecture. Specifically, per IRC:

error: the type `[u8; 18446744073709550615]` is too big for the current architecture 

Modifying the code in the very obvious manner to fix it makes it work fine.

@Aatch
Copy link
Contributor

Aatch commented Aug 1, 2016

Duplicate of #30083. The "capacity overflow" is from trying to create the massive vector to pass to LLVM.

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