-
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
Cargo doc regression in crates that include #![deny(unused_imports)] #51661
Comments
That commit range: ae46aef...86a8f1a. Mentioning @QuietMisdreavus and @GuillaumeGomez who were touching librustdoc in that range and @petrochenkov who reviewed #51425. |
The problem is a bit complex (to say the least)... |
The problem was the introduction of the Line 216 in f790780
The sample in this issue (and the regression in winapi in #51689) both explicitly deny the lint, despite us allowing it in rustdoc ahead of time. We need a way to disable this lint (and potentially any others that are affected by |
It requires investigation but I think we can. |
|
No, it's the same source. I know what the problem is, just need to fix it when I have time. |
don't build docs due to rust-lang/rust#51661
I don't think we can consider this fixed yet. I get the impression from #51956 that the only lints that rustdoc is supposed to emit are #![deny(non_upper_case_globals)]
pub const foo: u8 = 0;
On 1.27 stable that would document without any issues. |
[beta] Disable lints in rustdoc The lint handling in rustdoc 1.28 is still incomplete so I think it would be best to disable it for the stable release. The main thing that's missing is that cargo doesn't cap lints for dependencies. This was fixed in master by #52354 and rust-lang/cargo#5765 but they haven't been backported. Additionally rustdoc is still emitting lints that are not on its whitelist #51661 (comment). cc. @rust-lang/rustdoc
[beta] Disable lints in rustdoc The lint handling in rustdoc 1.28 is still incomplete so I think it would be best to disable it for the stable release. The main thing that's missing is that cargo doesn't cap lints for dependencies. This was fixed in master by #52354 and rust-lang/cargo#5765 but they haven't been backported. Additionally rustdoc is still emitting lints that are not on its whitelist rust-lang/rust#51661 (comment). cc. @rust-lang/rustdoc
cargo doc
of the above lib.rs works up throughcargo +nightly-2018-06-17 doc
. As ofcargo +nightly-2018-06-18 doc
it fails with:The text was updated successfully, but these errors were encountered: