diff --git a/src/test/rustdoc-ui/no-crate-level-doc-lint.rs b/src/test/rustdoc-ui/no-crate-level-doc-lint.rs index e939f3a44d3..c65af73ead1 100644 --- a/src/test/rustdoc-ui/no-crate-level-doc-lint.rs +++ b/src/test/rustdoc-ui/no-crate-level-doc-lint.rs @@ -1,3 +1,3 @@ -#![deny(no_crate_level_doc)] +#![deny(missing_crate_level_doc)] pub fn foo() {} diff --git a/src/test/rustdoc-ui/no-crate-level-doc-lint.stderr b/src/test/rustdoc-ui/no-crate-level-doc-lint.stderr index 45c24936868..f8d3723e7b0 100644 --- a/src/test/rustdoc-ui/no-crate-level-doc-lint.stderr +++ b/src/test/rustdoc-ui/no-crate-level-doc-lint.stderr @@ -1,13 +1,12 @@ -error: No documentation found on this crate top module. - -Maybe you could be interested into looking at this documentation: -https://doc.rust-lang.org/nightly/rustdoc/how-to-write-documentation.html +error: no documentation found for this crate's top-level module | -note: lint level defined here +note: the lint level is defined here --> $DIR/no-crate-level-doc-lint.rs:1:9 | -LL | #![deny(no_crate_level_doc)] - | ^^^^^^^^^^^^^^^^^^ +LL | #![deny(missing_crate_level_doc)] + | ^^^^^^^^^^^^^^^^^^^^^^^ + = help: The following guide may be of use: + https://doc.rust-lang.org/nightly/rustdoc/how-to-write-documentation.html error: aborting due to previous error