Files
rust/compiler/rustc_interface
Jonathan Brouwer 8ae06c8e46 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 rust-lang/rust#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 rust-lang/rust#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 rust-lang/rust#118212.
r? @petrochenkov
2026-06-04 15:33:23 +02:00
..