Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

remove reliance on old trait solver bug #1

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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 30, 2025

Conversation

lcnr
Copy link
Contributor

@lcnr lcnr commented May 28, 2025

Hi there 馃憢 we discovered this project during a crater run with the next-generation trait solver in rust-lang/rust#133502.

The generic parameter Q of QueryHandler is underconstrained here as it could be any type T with <T as Query>::Refs<'a> being equal to <Q as Query>::Refs<'a>. It isn't actually necessary for T to be Q itself, e.g. it could also be a type which delegates to Qs Query impl. The current type system implementation unnecessarily constrained T to be equal to Q. This will no longer be the case with the new trait solver.

See rust-lang/trait-system-refactor-initiative#168 or the related breakage in bevy for more details .

I am sorry for the inconvenience and am available in case there are any questions.

@LunaAmora LunaAmora merged commit ba54ee0 into LunaAmora:main May 30, 2025
@lcnr lcnr deleted the fix-inference branch June 1, 2025 09:22
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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.