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

Workaround for browser future not being Send #23

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

einarmo
Copy link
Contributor

@einarmo einarmo commented Jan 7, 2025

This is incredibly hard to diagnose, because the compiler error is useless.

I hate having to box a future in such a critical location, but I can't find a way around it. If someone wants to spend a few hours banging their head against rustc issue 100013, be my guest.

The bug in question is rust-lang/rust#100013. I have a vague intuition that it may be able to dodge this issue by making UARequest a generic trait instead of using a GAT. It may be worth trying, as it won't necessarily break usecases.

@oroulet
Copy link
Member

oroulet commented Jan 8, 2025

great! that works!
that stuff is really the dark side of rust...

Copy link
Member

@oroulet oroulet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes code usable and is not a big change so we must approve

This is incredibly hard to diagnose, because the compiler error is
useless.
@oroulet oroulet force-pushed the fix-browser-sendness branch from 283fdc0 to 36bdd25 Compare January 8, 2025 06:28
@einarmo einarmo merged commit 7a39591 into master Jan 8, 2025
6 checks passed
@einarmo einarmo deleted the fix-browser-sendness branch January 8, 2025 06:41
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.

2 participants