@@ -249,7 +249,7 @@ pub fn run_core(options: RustdocOptions) -> (clean::Crate, RenderInfo, RenderOpt
249
249
let missing_docs = rustc_lint:: builtin:: MISSING_DOCS . name ;
250
250
let missing_doc_example = rustc_lint:: builtin:: MISSING_DOC_CODE_EXAMPLES . name ;
251
251
let private_doc_tests = rustc_lint:: builtin:: PRIVATE_DOC_TESTS . name ;
252
- let no_crate_level_doc = rustc_lint:: builtin:: NO_CRATE_LEVEL_DOC . name ;
252
+ let no_crate_level_doc = rustc_lint:: builtin:: MISSING_CRATE_LEVEL_DOC . name ;
253
253
254
254
// In addition to those specific lints, we also need to whitelist those given through
255
255
// command line, otherwise they'll get ignored and we don't want that.
@@ -417,7 +417,7 @@ pub fn run_core(options: RustdocOptions) -> (clean::Crate, RenderInfo, RenderOpt
417
417
match m. doc_value ( ) {
418
418
None | Some ( "" ) => {
419
419
let mut diag = tcx. struct_lint_node (
420
- rustc_lint:: builtin:: NO_CRATE_LEVEL_DOC ,
420
+ rustc_lint:: builtin:: MISSING_CRATE_LEVEL_DOC ,
421
421
ctxt. as_local_hir_id ( m. def_id ) . unwrap ( ) ,
422
422
"No documentation found on this crate top module.\n \n \
423
423
Maybe you could be interested into looking at this documentation:\n \
@@ -432,8 +432,7 @@ pub fn run_core(options: RustdocOptions) -> (clean::Crate, RenderInfo, RenderOpt
432
432
433
433
fn report_deprecated_attr ( name : & str , diag : & rustc_errors:: Handler ) {
434
434
let mut msg = diag. struct_warn ( & format ! (
435
- "the `#![doc({})]` attribute is \
436
- considered deprecated",
435
+ "the `#![doc({})]` attribute is considered deprecated" ,
437
436
name
438
437
) ) ;
439
438
msg. warn (
0 commit comments