-
Notifications
You must be signed in to change notification settings - Fork 14k
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 <- btoa = move b - Converting
a <-> btoutil::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_initintrinsic, 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.