Skip to content

pattern bindings can be mutable #2714

Closed
@nikomatsakis

Description

@nikomatsakis

I just realized that my recent fix opened up another hole in borrowck. I believe that pattern bindings over mutable memory will be considered mutable but are only guaranteed to be const. This discrepancy should be fixed (also probably need a test case ensuring that the data is not considered immutable)

Metadata

Metadata

Assignees

Labels

A-lifetimesArea: Lifetimes / regions

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions