-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extract local mutability #98
Conversation
19ed194
to
704087b
Compare
704087b
to
dcdefba
Compare
A comment for reviewers: maybe look at the first commit separately, because it just (semantically equivalently) refactors some existing stuff to make it more suitable for the feature additions. |
# Conflicts: # stainless_extraction/src/expr.rs
Can we also add support for
|
Split up the negative tests to one single thing that fails. |
Introduces the possibility to have
let mut
variables in function bodies and alsomut
by-value parameters.This is still safe, because mutable borrow is still forbidden. Hence, all references can still be erased as they are immutable.
Adds most of the features from #92.