Uh oh!
There was an error while loading. Please reload this page.
delegation: split resolution and lowering - #157296
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
aerooneqq
commented
Jun 3, 2026
After changing @rustbot ready |
This comment has been minimized.
This comment has been minimized.
a2ddcb3 to
4c2c364Compareaerooneqq
commented
Jun 3, 2026
@rustbot author |
rustbot
commented
Jun 3, 2026
Reminder, once the PR becomes ready for a review, use |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
a3b108f to
9eb8e44Compare
This comment has been minimized.
This comment has been minimized.
ba00c21 to
9259289Comparerustbot
commented
Jun 4, 2026
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
421e420Compareaerooneqq
commented
Jun 4, 2026
@rustbot ready |
Uh oh!
There was an error while loading. Please reload this page.
petrochenkov
commented
Jun 4, 2026
r=me after (maybe) addressing #157296 (comment), and squashing commits. |
dbe7f3e to
cf34955Compareaerooneqq
commented
Jun 4, 2026
@rustbot ready |
petrochenkov
commented
Jun 4, 2026
@bors r+ |
…uwer Rollup of 5 pull requests Successful merges: - #154586 (Record failed tests with `--record`, and rerun them with `--rerun`) - #157296 (delegation: split resolution and lowering) - #156171 (Fix a coroutine UI test which is missing `#[coroutine]`) - #157249 (tests: codegen-llvm: Update bpf-alu32 with the new LLVM attributes) - #157426 (rustc-dev-guide subtree update)
Uh oh!
There was an error while loading. Please reload this page.
Rollup merge of #157296 - aerooneqq:delegation-extract-resolve, r=petrochenkov delegation: split resolution and lowering 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 #156798, where it will be convenient to insert diagnostics about specifying target expressions for glob reuses of only static functions (the `delegations_resolutions` map will contain information whether to lower or delete target expression)~ - For #155337 and delegations to inherent methods resolution, as from what I tested up until now we should resolve them in iterative manner before AST -> HIR lowering. Part of #118212. r? @petrochenkov
…uwer Rollup of 5 pull requests Successful merges: - rust-lang/rust#154586 (Record failed tests with `--record`, and rerun them with `--rerun`) - rust-lang/rust#157296 (delegation: split resolution and lowering) - rust-lang/rust#156171 (Fix a coroutine UI test which is missing `#[coroutine]`) - rust-lang/rust#157249 (tests: codegen-llvm: Update bpf-alu32 with the new LLVM attributes) - rust-lang/rust#157426 (rustc-dev-guide subtree update)
…nathanBrouwer Rollup of 5 pull requests Successful merges: - rust-lang#154586 (Record failed tests with `--record`, and rerun them with `--rerun`) - rust-lang#157296 (delegation: split resolution and lowering) - rust-lang#156171 (Fix a coroutine UI test which is missing `#[coroutine]`) - rust-lang#157249 (tests: codegen-llvm: Update bpf-alu32 with the new LLVM attributes) - rust-lang#157426 (rustc-dev-guide subtree update)
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 #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