File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 33set -o errexit
44
55. ~ /.cargo/env
6- cargo rustdoc -- -D warnings
7- cargo rustdoc --no-default-features --features async-std-runtime -- -D warnings
8- cargo rustdoc --no-default-features --features sync -- -D warnings
6+ cargo +nightly rustdoc -- -D warnings --cfg docsrs
7+ cargo +nightly rustdoc --no-default-features --features async-std-runtime -- -D warnings --cfg docsrs
8+ cargo +nightly rustdoc --no-default-features --features sync -- -D warnings --cfg docsrs
Original file line number Diff line number Diff line change 282282//! it will only happen in a minor or major version release.
283283
284284#![ warn( missing_docs) ]
285- #![ warn( missing_crate_level_docs) ]
285+ // `missing_crate_level_docs` was renamed with a `rustdoc::` prefix in rustc 1.55, but isn't
286+ // supported in the MSRV.
287+ // TODO: remove the wrapping cfg_attr if/when the MSRV is 1.55+.
288+ #![ cfg_attr( docsrs, warn( rustdoc:: missing_crate_level_docs) ) ]
286289#![ cfg_attr(
287290 feature = "cargo-clippy" ,
288291 allow(
You can’t perform that action at this time.
0 commit comments