This repository was archived by the owner on Apr 5, 2024. It is now read-only.
This repository was archived by the owner on Apr 5, 2024. It is now read-only.
Account for capture kind in trait migration #51
Closed
Description
Currently the code that does checks for trait bounds that won't be met in 2021 doesn't include the capture kind in the type of the captured path.
For computing the capture kind as per 2018:
- If move closure, then capture kind = ByValue
- else, Max capture kind according to Imm < UniqueImm < Mut < ByValue