Skip to content

Better message when illegal moves result from a binding #4715

Closed
@nikomatsakis

Description

@nikomatsakis

When you have a by-move binding in a match, it causes a move of the discriminant. It'd be nice if any errors resulting from this move identified the binding that caused the move. This requires some modifications to moves (to identify the binding and track it), liveness (to report the error in terms of the binding) and possibly borrowck (which also can report errors related to illegal moves)

Metadata

Metadata

Assignees

Labels

A-diagnosticsArea: Messages for errors, warnings, and lintsA-lifetimesArea: Lifetimes / regionsC-enhancementCategory: An issue proposing an enhancement or a PR with one.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions