Skip to content

Use RHS's struct def ID for error messages in pattern matching #14562

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

Merged
merged 1 commit into from May 31, 2014
Merged

Use RHS's struct def ID for error messages in pattern matching #14562

merged 1 commit into from May 31, 2014

Conversation

ghost
Copy link

@ghost ghost commented May 31, 2014

Fixes #14541

bors added a commit that referenced this pull request May 31, 2014
@bors bors closed this May 31, 2014
@bors bors merged commit 80e84e0 into rust-lang:master May 31, 2014
@ghost ghost deleted the issue-14541 branch June 5, 2014 16:41
bors added a commit to rust-lang-ci/rust that referenced this pull request Jun 5, 2023
Fix explicit deref problems in closure capture

fix the `need-mut` part of rust-lang#14562

Perhaps surprisingly, it wasn't unique immutable borrow. The code still doesn't emit any of them, and I think those won't happen in edition 2021 (which is currently the only thing implemented), since we always capture `&mut *x` instead of `&mut x`. But I'm not very sure about it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

error message claims struct does not have field that it clearly does have
1 participant