Skip to content
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
rust-lang/rust
#86869
@arora-aman

Description

@arora-aman

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions