Skip to content

Commit 339d5b8

Browse files
abr-egnpatrickfreed
authored andcommitted
minor: use new rustdoc:: warn prefix (#457)
1 parent e6d4ab0 commit 339d5b8

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.evergreen/check-rustdoc.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
set -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

src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,10 @@
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(

0 commit comments

Comments
 (0)