-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
unnecessary path disambiguator slips past deny(warnings) #58055
Comments
This happens because the warning is issued unconditionally, rather than under the purview of a lint: rust/src/libsyntax/parse/parser.rs Lines 2266 to 2267 in c9a8687
Reservations were expressed at the time. (@estebank do we have a policy anywhere on unsilenceable warnings? It seems kind of bad for it to be a thing the compiler mostly doesn't do, except sometimes very rarely when it didn't feel "worthy" of a top-level lint.) |
All hard-coded warnings should generally be subsumed by lints or eliminated. |
syntax: Remove warning for unnecessary path disambiguators `rustfmt` is now stable and it removes unnecessary turbofishes, so removing the warning as discussed in rust-lang#43540 (where it was introduced). One hardcoded warning less. Closes rust-lang#58055 r? @nikomatsakis
syntax: Remove warning for unnecessary path disambiguators `rustfmt` is now stable and it removes unnecessary turbofishes, so removing the warning as discussed in rust-lang#43540 (where it was introduced). One hardcoded warning less. Closes rust-lang#58055 r? @nikomatsakis
syntax: Remove warning for unnecessary path disambiguators `rustfmt` is now stable and it removes unnecessary turbofishes, so removing the warning as discussed in rust-lang#43540 (where it was introduced). One hardcoded warning less. Closes rust-lang#58055 r? @nikomatsakis
syntax: Remove warning for unnecessary path disambiguators `rustfmt` is now stable and it removes unnecessary turbofishes, so removing the warning as discussed in rust-lang#43540 (where it was introduced). One hardcoded warning less. Closes rust-lang#58055 r? @nikomatsakis
Although there is a
deny(warnings)
attribute, this code compiles with a warning only.This behavior is present in all versions I tested including the latest nightly 2019-01-31 and 1.21.0 when relaxed path syntax was introduced.
The text was updated successfully, but these errors were encountered: