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

Fix panic caused by new Try trait definition #8692

Merged
merged 4 commits into from
Apr 30, 2021

Conversation

flodiebold
Copy link
Member

@flodiebold flodiebold commented Apr 29, 2021

The new Try trait definition caused a query cycle for us. This adds recovery for that cycle, but also fixes the cause, which is that we went through the supertraits when resolving <T as Trait>::Assoc, which isn't actually necessary. I also rewrote all_super_trait_refs to an iterator before I realized what the actual problem was, so I kept that.

Fixes #8686.

Doesn't fix the bug I was trying to fix, but now that I did it anyway it
seems fine to keep.
This isn't actually how it works, you have to specify the exact trait
that has the associated type.

Fixes rust-lang#8686.
@flodiebold
Copy link
Member Author

bors r+

@bors
Copy link
Contributor

bors bot commented Apr 30, 2021

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

Successfully merging this pull request may close these issues.

inter panic Internal error, cycle detected
1 participant