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

[ER] Add warnings on Nightly for unused features #79733

Closed
leonardo-m opened this issue Dec 5, 2020 · 2 comments
Closed

[ER] Add warnings on Nightly for unused features #79733

leonardo-m opened this issue Dec 5, 2020 · 2 comments

Comments

@leonardo-m
Copy link

This is a diagnostic enhancement request. This code compiles with no warnings on Nightly:

#![feature(min_const_generics)]
fn main() {}

But I'd like rustc to give a warning that the min_const_generics feature is unnecessary for this program. (Not even Clippy seems to give a warning). The same for all the other unused features.

@ehuss
Copy link
Contributor

ehuss commented Dec 5, 2020

I believe this is a known issue, see #44232.

@leonardo-m
Copy link
Author

OK, thank you, I suspected that.

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