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

@arora-aman

Description

@arora-aman
Member

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

Activity

added a commit that references this issue on Jul 9, 2021
nikomatsakis

nikomatsakis commented on Jul 9, 2021

@nikomatsakis
Contributor

This was fixed by rust-lang/rust#86869

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @nikomatsakis@arora-aman@roxelo

    Issue actions

      Account for capture kind in trait migration · Issue #51 · rust-lang/project-rfc-2229