We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We got the following warning message:
warning: variant is never used: `Foo`, #[warn(dead_code)] on by default
For this code:
enum Something { Foo, NotFoo } fn main() { match Something::NotFoo { Something::Foo => {} _ => {} } }
This warning could mislead users because for them, the Foo variant is used. Adding a specific warning message could be nice.
@eddyb proposed this message instead in this case:
"this variant is never instantiated"
cc @eddyb
The text was updated successfully, but these errors were encountered:
Closing as a duplicate of #19140.
Sorry, something went wrong.
No branches or pull requests
We got the following warning message:
For this code:
This warning could mislead users because for them, the Foo variant is used. Adding a specific warning message could be nice.
@eddyb proposed this message instead in this case:
"this variant is never instantiated"
cc @eddyb
The text was updated successfully, but these errors were encountered: