Skip to content

Fix panic caused by new Try trait definition - #8692

Merged
bors[bot] merged 4 commits into
rust-lang:masterfrom
flodiebold:issue-8686
Apr 30, 2021
Merged

bors[bot] merged 4 commits into
rust-lang:masterfrom
flodiebold:issue-8686

Conversation

@flodiebold

@flodiebold flodiebold commented Apr 29, 2021 •

Copy link
Copy Markdown
Member

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
Copy Markdown
Member Author

bors r+

@bors

bors Bot commented Apr 30, 2021

Copy link
Copy Markdown
Contributor

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