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

Invalid Recursive Enum (2+ occurances) causes compiler out-of-memory on beta/nightly #32326

Closed
alex-ozdemir opened this Issue Mar 18, 2016 · 2 comments

Comments

Projects
None yet
4 participants
@alex-ozdemir
Copy link
Contributor

alex-ozdemir commented Mar 18, 2016

For example, compiling

enum Expr {
    Plus(Expr, Expr),
    Literal(i64),
}

with rustc causes the error message fatal runtime error: out of memory

Single occurrences seem to work fine.

@nikomatsakis

This comment has been minimized.

Copy link
Contributor

nikomatsakis commented Mar 18, 2016

Yeah, I can imagine why this is happening. We are exploring out the nested obligations in a breadth-first-fashion, and hence this blows up memory usage dramatically.

@nikomatsakis

This comment has been minimized.

Copy link
Contributor

nikomatsakis commented Mar 24, 2016

triage: P-high

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.