# Smarter borrow checking for function calls

**URL:** <https://internals.rust-lang.org/t/smarter-borrow-checking-for-function-calls/7509>\
**Category:** compiler\
**Created:** [May 11, 2018, 12:13pm UTC](https://internals.rust-lang.org/t/smarter-borrow-checking-for-function-calls/7509 "2018-05-11T12:13:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Ixrec](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/ixrec/32/6754_2.png) [@Ixrec](https://internals.rust-lang.org/u/Ixrec)\
**Post date:** [May 11, 2018, 12:17pm UTC](https://internals.rust-lang.org/t/smarter-borrow-checking-for-function-calls/7509/2 "2018-05-11T12:17:44Z")

</div>

I believe this is already implemented on nightly: [https://github.com/rust-lang/rust/issues/46037](https://github.com/rust-lang/rust/issues/46037)

[[blog post] Nested method calls via two-phase borrowing](https://internals.rust-lang.org/t/blog-post-nested-method-calls-via-two-phase-borrowing/4886) contains a proper explanation and discussion of the proposed solution that I believe got implemented.

---

_[View the full topic](https://internals.rust-lang.org/t/smarter-borrow-checking-for-function-calls/7509)._
