From ffe1289fd249d31cd98b2da168281ba860330987 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Tue, 11 Feb 2020 13:16:46 +0100 Subject: [PATCH] Update tests --- src/test/rustdoc-ui/no-crate-level-doc-lint.rs | 2 +- src/test/rustdoc-ui/no-crate-level-doc-lint.stderr | 13 ++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) 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