-
Couldn't load subscription status.
- Fork 1.8k
match_as_ref: improve diagnostics
#15928
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
Conversation
|
rustbot has assigned @samueltardieu. Use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that this doesn't fix the bug in:
let _: Option<&u32> = match Some(0) {
//~^ match_as_ref
None => None,
Some(ref mut v) => Some(v),
};which will propose an incorrect fix.
|
@rustbot ready |
match_as_ref: improve diagnostics
changelog: [
match_as_ref]: improve diagnostics