It's not entirely clear how much to go into this, versus splitting things into another RFC, but I think it's probably worth covering some aspects of the borrowck implementation:
Nested mutable borrows
Solving rust-lang/rustc#10520 by having an assignment to a path P of type &mut T kill all loans that are derived from P. We have to justify that this is safe, but I believe that it is.
It's not entirely clear how much to go into this, versus splitting things into another RFC, but I think it's probably worth covering some aspects of the borrowck implementation:
P
of type&mut T
kill all loans that are derived fromP
. We have to justify that this is safe, but I believe that it is.