Skip to content

handle user type annotations in NLL for complex patterns #54570

Closed
@nikomatsakis

Description

@nikomatsakis

One of the major remaining items for #47184 is that we do not handle user-type annotations around "complex patterns", like let (x, y): (T, U). I described my plan for how to handle this in a comment earlier. The basic idea is that a user type annotation should be tracked as not only a type but a series of projection elements that can be applied to that type. Opening this issue to track this particular change.

Metadata

Metadata

Assignees

Labels

A-NLLArea: Non-lexical lifetimes (NLL)NLL-soundWorking towards the "invalid code does not compile" goalT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions