Skip to content

"lint level defined here" note mostly useless #31004

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
mahkoh opened this issue Jan 18, 2016 · 2 comments
Closed

"lint level defined here" note mostly useless #31004

mahkoh opened this issue Jan 18, 2016 · 2 comments
Labels
A-diagnostics Area: Messages for errors, warnings, and lints

Comments

@mahkoh
Copy link
Contributor

mahkoh commented Jan 18, 2016

E.g.

liblrsb/parser/lib.rs:7:9: 7:23 note: lint level defined here
liblrsb/parser/lib.rs:7 #![warn(unused_results)]
                                ^~~~~~~~~~~~~~
liblrsb/parser/lib.rs:336:9: 336:30 warning: unused result
liblrsb/parser/lib.rs:336         path.shrink_to_fit();
                                  ^~~~~~~~~~~~~~~~~~~~~
liblrsb/parser/lib.rs:7:9: 7:23 note: lint level defined here
liblrsb/parser/lib.rs:7 #![warn(unused_results)]
                                ^~~~~~~~~~~~~~
liblrsb/parser/lib.rs:373:17: 373:35 warning: unused result
liblrsb/parser/lib.rs:373                 self.lexer.next();
                                          ^~~~~~~~~~~~~~~~~~
liblrsb/parser/lib.rs:7:9: 7:23 note: lint level defined here
liblrsb/parser/lib.rs:7 #![warn(unused_results)]
                                ^~~~~~~~~~~~~~
liblrsb/parser/lib.rs:374:17: 374:35 warning: unused result
liblrsb/parser/lib.rs:374                 self.lexer.next();
                                          ^~~~~~~~~~~~~~~~~~
liblrsb/parser/lib.rs:7:9: 7:23 note: lint level defined here
liblrsb/parser/lib.rs:7 #![warn(unused_results)]
                                ^~~~~~~~~~~~~~
liblrsb/parser/lib.rs:384:17: 384:35 warning: unused result
liblrsb/parser/lib.rs:384                 self.lexer.next();
                                          ^~~~~~~~~~~~~~~~~~
liblrsb/parser/lib.rs:7:9: 7:23 note: lint level defined here
liblrsb/parser/lib.rs:7 #![warn(unused_results)]
                                ^~~~~~~~~~~~~~
liblrsb/parser/lib.rs:385:17: 385:35 warning: unused result
liblrsb/parser/lib.rs:385                 self.lexer.next();
                                          ^~~~~~~~~~~~~~~~~~
liblrsb/parser/lib.rs:7:9: 7:23 note: lint level defined here
liblrsb/parser/lib.rs:7 #![warn(unused_results)]
                                ^~~~~~~~~~~~~~

At least 5 of those 6 notes add nothing but noise to the output.

@nagisa nagisa added the A-diagnostics Area: Messages for errors, warnings, and lints label Jan 19, 2016
@nagisa
Copy link
Member

nagisa commented Jan 19, 2016

Duplicate of #24690, I think.

@nagisa nagisa closed this as completed Jan 19, 2016
@basantsd
Copy link

#![allow(unused_results)]

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
A-diagnostics Area: Messages for errors, warnings, and lints
Projects
None yet
Development

No branches or pull requests

3 participants