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

Suggest simpler code in patterns #2201

Closed
leonardo-m opened this issue Nov 3, 2017 · 1 comment
Closed

Suggest simpler code in patterns #2201

leonardo-m opened this issue Nov 3, 2017 · 1 comment

Comments

@leonardo-m
Copy link

I've seen this that suggests a new feature to accept simple code in patterns:

rust-lang/rust#45409

Is it a good idea to add a lint to Clippy to suggest those simplifications even in code that currently compiles?

@Manishearth
Copy link
Member

Not until it stabilizes, no.

We already have a lint that goes in the opposite direction which we'll evolve into this I think.

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

No branches or pull requests

2 participants