mirror of
https://github.com/allankoechke/rust.git
synced 2026-11-30 11:05:36 +00:00
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