-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Remove <-
and <->
forms
#3466
Comments
I have a patch to remove |
Yield an obsolete syntax error on things like "let foo <- bar;" and "foo <- bar;" Progress on rust-lang#3466
Yield an obsolete syntax error on things like "let foo <- bar;" and "foo <- bar;" r=brson Progress on #3466
Just curious, why is |
There is a problem with removing
Changing this to
doesn't work:
This may be a reason to keep |
If pure functions are allowed to mutate mutable in pointers (as was discussed at some point) then swap can be pure. |
That ... is true. Interesting observation. |
Left-arrow was removed already, but removing the swap operator is blocked on #5384. De-milestoning |
Fixed as by 9f106a6. |
Discard error report in silent_emitter
add some basic support for GetFullPathNameW This is the last missing piece to make std `path::` tests work on Windows.
This involves:
a <- b
toa = move b
a <-> b
toutil::swap(&mut a, &mut b)
orutil::replace()
(I suspect most uses would be better written with the latter)util::swap()
andutil::replace()
unsafely, probably by converting the arguments to unsafe pointers and then using themove_val_init
intrinsic, which moves a value without dropping the previous valueThe text was updated successfully, but these errors were encountered: