@@ -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:: MISSING_CRATE_LEVEL_DOC . name ;
252
+ let no_crate_level_docs = rustc_lint:: builtin:: MISSING_CRATE_LEVEL_DOCS . 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.
@@ -259,7 +259,7 @@ pub fn run_core(options: RustdocOptions) -> (clean::Crate, RenderInfo, RenderOpt
259
259
missing_docs. to_owned( ) ,
260
260
missing_doc_example. to_owned( ) ,
261
261
private_doc_tests. to_owned( ) ,
262
- no_crate_level_doc . to_owned( ) ,
262
+ no_crate_level_docs . to_owned( ) ,
263
263
] ;
264
264
265
265
whitelisted_lints. extend ( lint_opts. iter ( ) . map ( |( lint, _) | lint) . cloned ( ) ) ;
@@ -419,7 +419,7 @@ pub fn run_core(options: RustdocOptions) -> (clean::Crate, RenderInfo, RenderOpt
419
419
https://doc.rust-lang.org/nightly/rustdoc/how-to-write-documentation\
420
420
.html";
421
421
tcx. struct_lint_node (
422
- rustc_lint:: builtin:: MISSING_CRATE_LEVEL_DOC ,
422
+ rustc_lint:: builtin:: MISSING_CRATE_LEVEL_DOCS ,
423
423
ctxt. as_local_hir_id ( m. def_id ) . unwrap ( ) ,
424
424
|lint| {
425
425
let mut diag = lint. build (
0 commit comments