Skip to content

statement with no effect warning #42280

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

Closed
leonardo-m opened this issue May 28, 2017 · 2 comments
Closed

statement with no effect warning #42280

leonardo-m opened this issue May 28, 2017 · 2 comments

Comments

@leonardo-m
Copy link

This is an enhancement request. This little program currently compiles with no warnings:

fn main() {
    "sss";
    10;
    10 == 10;
}

Clippy gives three "statement with no effect" warnings. I think such warning should be raised by the rustc compiler too.

@Mark-Simulacrum
Copy link
Member

Thanks! This is actually a duplicate of #32108. Either way, I think this would need an RFC to be implemented due to the nature of lints, but I'm uncertain.

@steveklabnik
Copy link
Member

Either way, I think this would need an RFC to be implemented due to the nature of lints, but I'm uncertain.

Yes, new lints require RFCs.

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

3 participants