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

Overflow evaluation with recursive types and Box #983

Open
NicolasLagaillardie opened this issue Jun 5, 2023 · 1 comment
Open

Overflow evaluation with recursive types and Box #983

NicolasLagaillardie opened this issue Jun 5, 2023 · 1 comment

Comments

@NicolasLagaillardie
Copy link

I have issues with "overflow evalution" with recursive enum types, but only when I start a variant with a Sender containing either a Receiver or a Sender, which also contains a Receiver or a Sender. You can see the playground here: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=5343c9bc10329a804d43ef1493527e38.
As you can see in this playground, when I start with a Receiver, I do not have any compilation issue.
Also, if I swap Sender/Receiver with their payload, I do not have the issue, as you can see in this playground: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=7b946d0b6d04557ff648659edf0773ee.

How can this be possible and how can I solve this?

@abique
Copy link

abique commented Feb 17, 2024

I had this issue as well.
I was creating a context with some rtrb queues as well as a blocking one.
I had to put that object into a box to workaround this problem.
Reallllllyyyyyy strannnnnngeeeeeee.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants