Skip to content

fix: Port and refactor more stuff to match rustc#22141

Merged
ShoyuVanilla merged 7 commits intorust-lang:masterfrom
ChayimFriedman2:more-port
Apr 23, 2026
Merged

fix: Port and refactor more stuff to match rustc#22141
ShoyuVanilla merged 7 commits intorust-lang:masterfrom
ChayimFriedman2:more-port

Conversation

@ChayimFriedman2
Copy link
Copy Markdown
Contributor

Best reviewed commit by commit. The commits messages are also important. The commits are completely separate and could be split to multiple PRs if needed.

Blocked on #22134.

@ChayimFriedman2 ChayimFriedman2 marked this pull request as ready for review April 22, 2026 16:43
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 22, 2026
And make `InferenceTable` used by inference only.
Some usages were converted into `demand_eqtype()` which is the name in rustc and also reports diagnostics, and others should use a different method.
The obligation `Type: ParentTrait` for a path used to be registered three(!) times. Leave it registered implicitly as one of the generic predicates of the item.
 - Do not eagerly normalize the `IntoFuture::Output` projection
 - Store `IntoFuture` and `IntoFuture::Output` in `LangItems`, to save computing them every time. They are not really lang items, but are similar in nature.
This is what rustc does. It's more performant, but we couldn't do that so far because old code relied on also restoring the obligations, i.e. it was registering maybe-incorrect obligations in the `InferenceTable` without first checking them in a separate `ObligationCtxt`. That code is now gone.
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 22, 2026

This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

Copy link
Copy Markdown
Member

@ShoyuVanilla ShoyuVanilla left a comment

Choose a reason for hiding this comment

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

@ShoyuVanilla ShoyuVanilla added this pull request to the merge queue Apr 23, 2026
Merged via the queue into rust-lang:master with commit f0d1d3b Apr 23, 2026
18 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 23, 2026
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