[Feature Request][Compiler-v2] Improve performance of field mutable borrow check #12605
Labels
compiler-v2
enhancement
New feature or request
stale-exempt
Prevents issues from being automatically marked and closed as stale
馃殌 Feature Request
Motivation
In PR #12470, we visit the entire tree again after
post_process_body
to check whether there is borrow of a field mutably from an immutable ref. Instead of doing this, we need a custom visitor trait implementation to check this property as we ascent after the new exp is constructed.The text was updated successfully, but these errors were encountered: