mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
fbd548acc3
Including unstable lints in the lint group produces unintuitive behavior on stable (see #106289). Meanwhile, if we only included unstable lints on nightly and not on stable, we could end up with confusing bugs that were hard to compare across versions of Rust that lacked code changes. I think that only including stable lints in `rustdoc::all`, no matter the release channel, is the most intuitive option. Users can then control unstable lints individually, which is reasonable since they have to enable the feature gates individually anyway.
55 lines
1.5 KiB
Plaintext
55 lines
1.5 KiB
Plaintext
error: missing code example in this documentation
|
|
--> $DIR/lint-group.rs:19:1
|
|
|
|
|
LL | /// wait, this doesn't have a doctest?
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/lint-group.rs:9:9
|
|
|
|
|
LL | #![deny(rustdoc::missing_doc_code_examples)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: documentation test in private item
|
|
--> $DIR/lint-group.rs:22:1
|
|
|
|
|
LL | / /// wait, this *does* have a doctest?
|
|
LL | | ///
|
|
LL | | /// ```
|
|
LL | | /// println!("sup");
|
|
LL | | /// ```
|
|
| |_______^
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/lint-group.rs:10:9
|
|
|
|
|
LL | #![deny(rustdoc::all)]
|
|
| ^^^^^^^^^^^^
|
|
= note: `#[deny(rustdoc::private_doc_tests)]` implied by `#[deny(rustdoc::all)]`
|
|
|
|
error: missing code example in this documentation
|
|
--> $DIR/lint-group.rs:29:1
|
|
|
|
|
LL | /// <unknown>
|
|
| ^^^^^^^^^^^^^
|
|
|
|
error: unresolved link to `error`
|
|
--> $DIR/lint-group.rs:12:29
|
|
|
|
|
LL | /// what up, let's make an [error]
|
|
| ^^^^^ no item named `error` in scope
|
|
|
|
|
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
|
|
= note: `#[deny(rustdoc::broken_intra_doc_links)]` implied by `#[deny(rustdoc::all)]`
|
|
|
|
error: unclosed HTML tag `unknown`
|
|
--> $DIR/lint-group.rs:29:5
|
|
|
|
|
LL | /// <unknown>
|
|
| ^^^^^^^^^
|
|
|
|
|
= note: `#[deny(rustdoc::invalid_html_tags)]` implied by `#[deny(rustdoc::all)]`
|
|
|
|
error: aborting due to 5 previous errors
|
|
|