Skip to content

Commit eed0ceb

Browse files
committed
Recognize private_intra_doc_links as a lint
Previously, trying to allow this would give another error! ``` warning: unknown lint: `private_intra_doc_links` --> private.rs:1:10 | 1 | #![allow(private_intra_doc_links)] | ^^^^^^^^^^^^^^^^^^^^^^^ help: did you mean: `broken_intra_doc_links` | = note: `#[warn(unknown_lints)]` on by default warning: public documentation for `DocMe` links to private item `DontDocMe` --> private.rs:2:11 | 2 | /// docs [DontDocMe] | ^^^^^^^^^ this item is private | = note: `#[warn(private_intra_doc_links)]` on by default = note: this link will resolve properly if you pass `--document-private-items` ```
1 parent f2bbdd0 commit eed0ceb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_lint_defs/src/builtin.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2790,6 +2790,7 @@ declare_lint_pass! {
27902790
UNSTABLE_NAME_COLLISIONS,
27912791
IRREFUTABLE_LET_PATTERNS,
27922792
BROKEN_INTRA_DOC_LINKS,
2793+
PRIVATE_INTRA_DOC_LINKS,
27932794
INVALID_CODEBLOCK_ATTRIBUTES,
27942795
MISSING_CRATE_LEVEL_DOCS,
27952796
MISSING_DOC_CODE_EXAMPLES,

0 commit comments

Comments
 (0)