Skip to content

remove unnecessary where-clauses #4023

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

Merged
merged 1 commit into from
May 29, 2025
Merged

Conversation

lcnr
Copy link
Contributor

@lcnr lcnr commented May 28, 2025

Uncovered during a crater run for -Znext-solver in rust-lang/rust#133502.

These where-clauses cause tachys to fail with an overflow error when compiling with the next-generation trait solver right now: rust-lang/trait-system-refactor-initiative#89. We're still unsure whether we actually have to break this when stabilizing the new solver, so it may not be an issue in the end. This breakage is a really subtle issue and quite unfortunate.

Luckily, this PR should be neutral or even desirable by itself, so I think it's fine to merge it regardless of whether it'll be actually necessary to avoid future breakage.

In case this looks good to you, it would be awesome if you could release this change as a point-release for version 0.2 and maybe even backport it to 0.1. It would really help us with our work on the new trait solver.

🐰

they may cause tachys to break with -Znext-solver
@benwis
Copy link
Contributor

benwis commented May 28, 2025

@lcnr Love to see the work on the new trait solver and that leptos/tachys is being tested in it! I'm happy to merge and release a new version of tachys to include the changes once the CI passes. I'll ping you here once that's done

@benwis benwis merged commit f34e3a5 into leptos-rs:main May 29, 2025
267 checks passed
@benwis
Copy link
Contributor

benwis commented May 29, 2025

@lcnr tachys v0.2.3 has been released with your changes included

@lcnr lcnr deleted the rm-where-clauses branch May 29, 2025 19:42
@lcnr
Copy link
Contributor Author

lcnr commented May 29, 2025

Awesome, thank you!

If you've got the time, please also cherry-pick this commit on top of the last 0.1 release and do a point release for that one as well.

gbj pushed a commit that referenced this pull request Jun 6, 2025
they may cause tachys to break with -Znext-solver

(cherry picked from commit f34e3a5)
@gbj
Copy link
Collaborator

gbj commented Jun 6, 2025

@lcnr I've just released an updated 0.1.9 as well.

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.

3 participants