@@ -322,7 +322,8 @@ pub fn run_core(
322
322
let cpath = Some ( input. clone ( ) ) ;
323
323
let input = Input :: File ( input) ;
324
324
325
- let intra_link_resolution_failure_name = lint:: builtin:: BROKEN_INTRA_DOC_LINKS . name ;
325
+ let broken_intra_doc_links = lint:: builtin:: BROKEN_INTRA_DOC_LINKS . name ;
326
+ let private_intra_doc_links = lint:: builtin:: PRIVATE_INTRA_DOC_LINKS . name ;
326
327
let missing_docs = rustc_lint:: builtin:: MISSING_DOCS . name ;
327
328
let missing_doc_example = rustc_lint:: builtin:: MISSING_DOC_CODE_EXAMPLES . name ;
328
329
let private_doc_tests = rustc_lint:: builtin:: PRIVATE_DOC_TESTS . name ;
@@ -335,7 +336,8 @@ pub fn run_core(
335
336
// In addition to those specific lints, we also need to allow those given through
336
337
// command line, otherwise they'll get ignored and we don't want that.
337
338
let lints_to_show = vec ! [
338
- intra_link_resolution_failure_name. to_owned( ) ,
339
+ broken_intra_doc_links. to_owned( ) ,
340
+ private_intra_doc_links. to_owned( ) ,
339
341
missing_docs. to_owned( ) ,
340
342
missing_doc_example. to_owned( ) ,
341
343
private_doc_tests. to_owned( ) ,
@@ -347,9 +349,8 @@ pub fn run_core(
347
349
] ;
348
350
349
351
let ( lint_opts, lint_caps) = init_lints ( lints_to_show, lint_opts, |lint| {
350
- if lint. name == intra_link_resolution_failure_name
351
- || lint. name == invalid_codeblock_attributes_name
352
- {
352
+ // FIXME: why is this necessary?
353
+ if lint. name == broken_intra_doc_links || lint. name == invalid_codeblock_attributes_name {
353
354
None
354
355
} else {
355
356
Some ( ( lint. name_lower ( ) , lint:: Allow ) )
0 commit comments