Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Stacked borrows 2 (alpha 1) #695
This is a first "alpha version" of Stacked Borrows 2. I'll write a blog post about this eventually...
The "stack" part is more of a guideline than a strict discipline at this point, unfortunately. I have some idead for how to make it more stack-like again but I decided to go with this first.
Fixes #615: References into unions with interior mutability work now.
This was referenced
Apr 17, 2019
That's fine, I didn't expect you to. All issues with this code are entirely my fault. ;)
I ran the libcore/liballoc test suites with this, and they came back green. So in terms of test coverage I am fairly confident that at least it accepts all the code it should accept. For negative tests, the fact that every single prior error is reproduced in the same line (just with a different message) hopefully means things are good here as well.