You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cargo doc regression in crates that include #![deny(unused_imports)] #51661
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 everybody-loops?) when rustdoc is running. Alternately, some kind of "porous lint cap" that still lets us fire the intra-doc-links lint? Is that possible with the current system?
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 missing_docs and intra_link_resolution_failure but some other lints like the following still trigger:
error: constant `foo` should have an upper case name such as `FOO`
--> a.rs:3:1
|
3 | pub const foo: u8 = 0;
| ^^^^^^^^^^^^^^^^^^^^^^
|
note: lint level defined here
--> a.rs:1:9
|
1 | #![deny(non_upper_case_globals)]
| ^^^^^^^^^^^^^^^^^^^^^^
error: Compilation failed, aborting rustdoc
On 1.27 stable that would document without any issues.
Activity
dtolnay commentedon Jun 20, 2018
That commit range: ae46aef...86a8f1a. Mentioning @QuietMisdreavus and @GuillaumeGomez who were touching librustdoc in that range and @petrochenkov who reviewed #51425.
GuillaumeGomez commentedon Jun 20, 2018
The problem is a bit complex (to say the least)...
QuietMisdreavus commentedon Jun 21, 2018
The problem was the introduction of the
intra_doc_links_resolution_failurelint, which caused rustdoc to stop capping lints:rust/src/librustdoc/core.rs
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
everybody-loops?) when rustdoc is running. Alternately, some kind of "porous lint cap" that still lets us fire the intra-doc-links lint? Is that possible with the current system?GuillaumeGomez commentedon Jun 21, 2018
It requires investigation but I think we can.
marshallpierce commentedon Jun 25, 2018
unused_extern_cratescauses a similar problem (see marshallpierce/rust-base64#64). Same root cause, or should I open a separate issue?GuillaumeGomez commentedon Jun 25, 2018
No, it's the same source. I know what the problem is, just need to fix it when I have time.
Only test nightly for now
Auto merge of #51956 - GuillaumeGomez:shutdown-doc-lints, r=oli-obk
ollie27 commentedon Jul 21, 2018
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
missing_docsandintra_link_resolution_failurebut some other lints like the following still trigger:On 1.27 stable that would document without any issues.
Auto merge of #52796 - ollie27:rustdoc_beta_lints, r=QuietMisdreavus
Auto merge of #52796 - ollie27:rustdoc_beta_lints, r=QuietMisdreavus