-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-frontendArea: Compiler frontend (errors, parsing and HIR)Area: Compiler frontend (errors, parsing and HIR)E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Description
This involves:
- Converting
a <- b
toa = move b
- Converting
a <-> b
toutil::swap(&mut a, &mut b)
orutil::replace()
(I suspect most uses would be better written with the latter) - Implementing
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 value
Metadata
Metadata
Assignees
Labels
A-frontendArea: Compiler frontend (errors, parsing and HIR)Area: Compiler frontend (errors, parsing and HIR)E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.