a-mir-formality icon indicating copy to clipboard operation
a-mir-formality copied to clipboard

Add borrow checker

Open nikomatsakis opened this issue 3 years ago • 0 comments

I think we will base this design on polonius. There are various pieces to the borrow checker:

  • [x] #84
  • [ ] Region check -- detect errors from HRTB, or attempts to return data with type &'a u32 as a &'b u32, etc (this is mostly implemented in trait check, but we have to integrate it)
  • [ ] Loan check -- figure out which paths are borrowed at each point and ensure accesses are consistent with those borrows

nikomatsakis avatar May 18 '22 00:05 nikomatsakis