delegation: split resolution and lowering#157296
Open
aerooneqq wants to merge 11 commits into
Open
Conversation
petrochenkov
reviewed
Jun 2, 2026
Contributor
Author
|
After changing @rustbot ready |
This comment has been minimized.
This comment has been minimized.
a2ddcb3 to
4c2c364
Compare
Contributor
Author
|
@rustbot author |
Collaborator
|
Reminder, once the PR becomes ready for a review, use |
petrochenkov
reviewed
Jun 3, 2026
a3b108f to
9eb8e44
Compare
This comment has been minimized.
This comment has been minimized.
ba00c21 to
9259289
Compare
Collaborator
|
This PR was rebased onto a different main 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. |
f4ee446 to
421e420
Compare
Contributor
Author
|
@rustbot ready |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
View all comments
This PR splits delegation's AST -> HIR lowering and its resolution. Now we resolve all delegations and then lower them. This should have benefits:
For delegation: do not always generate first argument (pt. 1) #156798, where it will be convenient to insert diagnostics about specifying target expressions for glob reuses of only static functions (thedelegations_resolutionsmap will contain information whether to lower or delete target expression)Part of #118212.
r? @petrochenkov