Closed
Description
This is a tracking issue for the RFC "Enable nested method calls" (rust-lang/rfcs#2025).
Steps:
- Implement the RFC
- Implementation specifically is tracked in MIR Borrowck: two-phased borrows #46037
- Adjust documentation (see instructions on forge)
- Stabilization PR (see instructions on forge)
Issues and questions to be resolved prior to stabilization:
- as currently implemented, the two-phase borrows apply more broadly than the RFC text permitted for initial release, limit two phase borrows to method-call autorefs #46747