Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pattern bindings can be mutable #2714

Closed
nikomatsakis opened this issue Jun 23, 2012 · 1 comment
Closed

pattern bindings can be mutable #2714

nikomatsakis opened this issue Jun 23, 2012 · 1 comment
Assignees
Labels
A-lifetimes Area: Lifetimes / regions
Milestone

Comments

@nikomatsakis
Copy link
Contributor

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)

@ghost ghost assigned nikomatsakis Jun 23, 2012
@nikomatsakis
Copy link
Contributor Author

I think this is no longer relevant with the introduction of ref bindings.

celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
Resolves: rust-lang#2714

Co-authored-by: Ted Kaminski <tedinski@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lifetimes Area: Lifetimes / regions
Projects
None yet
Development

No branches or pull requests

1 participant