-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of #82011 - jyn514:warn-private-assoc-item, r=max-heller
Fix private intra-doc warnings on associated items The issue was that the `kind, id` override was previously only being considered for the disambiguator check, not the privacy check. This uses the same ID for both. Fixes #81981. r? ``@max-heller``
- Loading branch information
Showing
4 changed files
with
31 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
warning: public documentation for `DocMe` links to private item `DontDocMe` | ||
--> $DIR/private.rs:5:11 | ||
| | ||
LL | /// docs [DontDocMe] | ||
LL | /// docs [DontDocMe] [DontDocMe::f] | ||
| ^^^^^^^^^ this item is private | ||
| | ||
= note: `#[warn(private_intra_doc_links)]` on by default | ||
= note: this link resolves only because you passed `--document-private-items`, but will break without | ||
|
||
warning: 1 warning emitted | ||
warning: public documentation for `DocMe` links to private item `DontDocMe::f` | ||
--> $DIR/private.rs:5:23 | ||
| | ||
LL | /// docs [DontDocMe] [DontDocMe::f] | ||
| ^^^^^^^^^^^^ this item is private | ||
| | ||
= note: this link resolves only because you passed `--document-private-items`, but will break without | ||
|
||
warning: 2 warnings emitted | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
warning: public documentation for `DocMe` links to private item `DontDocMe` | ||
--> $DIR/private.rs:5:11 | ||
| | ||
LL | /// docs [DontDocMe] | ||
LL | /// docs [DontDocMe] [DontDocMe::f] | ||
| ^^^^^^^^^ 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` | ||
|
||
warning: 1 warning emitted | ||
warning: public documentation for `DocMe` links to private item `DontDocMe::f` | ||
--> $DIR/private.rs:5:23 | ||
| | ||
LL | /// docs [DontDocMe] [DontDocMe::f] | ||
| ^^^^^^^^^^^^ this item is private | ||
| | ||
= note: this link will resolve properly if you pass `--document-private-items` | ||
|
||
warning: 2 warnings emitted | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters