-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
impl trait: rustc stack overflow #35706
Comments
If I'm not mistaken this is a simpler program showing the same bug:
|
Odd, we have a testcase similar to this, I'll look into it. |
@eddyb Have you had a chance to look into this? |
yup, I still have a problem with this https://github.com/ForsakenHarmony/bfasm/blob/master/src/parser/ops.rs#L24-L30 this causes the stack overflow for me |
It slipped through the cracks, oops. cc @aturon |
The stack. The infinite recursion should be this line
|
@nikomatsakis Do you have suggestions about proceeding? How is the equivalent problem with trait associated types solved? |
any updates? |
Ah, I missed this entirely. I sort of see the problem but have to bring the details of our impl trait impl back into cache to figure out what I think is best fix. |
still nothing? |
@ForsakenHarmony @nikomatsakis is now away on vacation (and is usually overloaded). @eddyb, is this something you'd be able to look at? Anything I could help talk through? |
cc @cramertj, as you start diving in. |
Dup of #36792. |
This is the original though? 🙈 |
I get the error
thread 'rustc' has overflowed its stack
when I try to compile the following program:The text was updated successfully, but these errors were encountered: