-
Notifications
You must be signed in to change notification settings - Fork 13k
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 #75718 - GuillaumeGomez:coverage-ui-doc-examples-coun…
…t, r=jyn514 Don't count variants/fields/consts/associated types in doc-coverage doc examples Fixes #75714. I think I'll need to update the equivalent lint too. Creating an issue for that! r? @jyn514
- Loading branch information
Showing
14 changed files
with
196 additions
and
94 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
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,7 +1,7 @@ | ||
+-------------------------------------+------------+------------+------------+------------+------------+ | ||
| File | Documented | Total | Percentage | Examples | Percentage | | ||
+-------------------------------------+------------+------------+------------+------------+------------+ | ||
| ...est/rustdoc-ui/coverage/basic.rs | 7 | 14 | 50.0% | 0 | 0.0% | | ||
+-------------------------------------+------------+------------+------------+------------+------------+ | ||
| Total | 7 | 14 | 50.0% | 0 | 0.0% | | ||
+-------------------------------------+------------+------------+------------+------------+------------+ | ||
+-------------------------------------+------------+------------+------------+------------+ | ||
| File | Documented | Percentage | Examples | Percentage | | ||
+-------------------------------------+------------+------------+------------+------------+ | ||
| ...est/rustdoc-ui/coverage/basic.rs | 7 | 50.0% | 0 | 0.0% | | ||
+-------------------------------------+------------+------------+------------+------------+ | ||
| Total | 7 | 50.0% | 0 | 0.0% | | ||
+-------------------------------------+------------+------------+------------+------------+ |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// check-pass | ||
// compile-flags:-Z unstable-options --output-format json --show-coverage | ||
|
||
// This check ensures that only one doc example is counted since they're "optional" on | ||
// certain items. | ||
|
||
/// ``` | ||
/// let x = 12; | ||
/// ``` | ||
pub const Foo: u32 = 0; | ||
|
||
/// doc | ||
pub const Bar: u32 = 0; |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
{"$DIR/doc-examples-json.rs":{"total":3,"with_docs":2,"total_examples":2,"with_examples":1}} |
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,7 +1,7 @@ | ||
+-------------------------------------+------------+------------+------------+------------+------------+ | ||
| File | Documented | Total | Percentage | Examples | Percentage | | ||
+-------------------------------------+------------+------------+------------+------------+------------+ | ||
| ...tdoc-ui/coverage/doc-examples.rs | 4 | 4 | 100.0% | 2 | 50.0% | | ||
+-------------------------------------+------------+------------+------------+------------+------------+ | ||
| Total | 4 | 4 | 100.0% | 2 | 50.0% | | ||
+-------------------------------------+------------+------------+------------+------------+------------+ | ||
+-------------------------------------+------------+------------+------------+------------+ | ||
| File | Documented | Percentage | Examples | Percentage | | ||
+-------------------------------------+------------+------------+------------+------------+ | ||
| ...tdoc-ui/coverage/doc-examples.rs | 4 | 100.0% | 2 | 50.0% | | ||
+-------------------------------------+------------+------------+------------+------------+ | ||
| Total | 4 | 100.0% | 2 | 50.0% | | ||
+-------------------------------------+------------+------------+------------+------------+ |
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,7 +1,7 @@ | ||
+-------------------------------------+------------+------------+------------+------------+------------+ | ||
| File | Documented | Total | Percentage | Examples | Percentage | | ||
+-------------------------------------+------------+------------+------------+------------+------------+ | ||
| ...est/rustdoc-ui/coverage/empty.rs | 0 | 1 | 0.0% | 0 | 0.0% | | ||
+-------------------------------------+------------+------------+------------+------------+------------+ | ||
| Total | 0 | 1 | 0.0% | 0 | 0.0% | | ||
+-------------------------------------+------------+------------+------------+------------+------------+ | ||
+-------------------------------------+------------+------------+------------+------------+ | ||
| File | Documented | Percentage | Examples | Percentage | | ||
+-------------------------------------+------------+------------+------------+------------+ | ||
| ...est/rustdoc-ui/coverage/empty.rs | 0 | 0.0% | 0 | 0.0% | | ||
+-------------------------------------+------------+------------+------------+------------+ | ||
| Total | 0 | 0.0% | 0 | 0.0% | | ||
+-------------------------------------+------------+------------+------------+------------+ |
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,7 +1,7 @@ | ||
+-------------------------------------+------------+------------+------------+------------+------------+ | ||
| File | Documented | Total | Percentage | Examples | Percentage | | ||
+-------------------------------------+------------+------------+------------+------------+------------+ | ||
| ...est/rustdoc-ui/coverage/enums.rs | 6 | 8 | 75.0% | 0 | 0.0% | | ||
+-------------------------------------+------------+------------+------------+------------+------------+ | ||
| Total | 6 | 8 | 75.0% | 0 | 0.0% | | ||
+-------------------------------------+------------+------------+------------+------------+------------+ | ||
+-------------------------------------+------------+------------+------------+------------+ | ||
| File | Documented | Percentage | Examples | Percentage | | ||
+-------------------------------------+------------+------------+------------+------------+ | ||
| ...est/rustdoc-ui/coverage/enums.rs | 6 | 75.0% | 0 | 0.0% | | ||
+-------------------------------------+------------+------------+------------+------------+ | ||
| Total | 6 | 75.0% | 0 | 0.0% | | ||
+-------------------------------------+------------+------------+------------+------------+ |
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,8 +1,8 @@ | ||
+-------------------------------------+------------+------------+------------+------------+------------+ | ||
| File | Documented | Total | Percentage | Examples | Percentage | | ||
+-------------------------------------+------------+------------+------------+------------+------------+ | ||
| ...st/rustdoc-ui/coverage/exotic.rs | 1 | 1 | 100.0% | 0 | 0.0% | | ||
| <anon> | 2 | 2 | 100.0% | 0 | 0.0% | | ||
+-------------------------------------+------------+------------+------------+------------+------------+ | ||
| Total | 3 | 3 | 100.0% | 0 | 0.0% | | ||
+-------------------------------------+------------+------------+------------+------------+------------+ | ||
+-------------------------------------+------------+------------+------------+------------+ | ||
| File | Documented | Percentage | Examples | Percentage | | ||
+-------------------------------------+------------+------------+------------+------------+ | ||
| ...st/rustdoc-ui/coverage/exotic.rs | 1 | 100.0% | 0 | 0.0% | | ||
| <anon> | 2 | 100.0% | 0 | 0.0% | | ||
+-------------------------------------+------------+------------+------------+------------+ | ||
| Total | 3 | 100.0% | 0 | 0.0% | | ||
+-------------------------------------+------------+------------+------------+------------+ |
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 +1 @@ | ||
{"$DIR/json.rs":{"total":13,"with_docs":7,"with_examples":0}} | ||
{"$DIR/json.rs":{"total":17,"with_docs":12,"total_examples":15,"with_examples":6}} |
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,7 +1,7 @@ | ||
+-------------------------------------+------------+------------+------------+------------+------------+ | ||
| File | Documented | Total | Percentage | Examples | Percentage | | ||
+-------------------------------------+------------+------------+------------+------------+------------+ | ||
| ...t/rustdoc-ui/coverage/private.rs | 4 | 7 | 57.1% | 0 | 0.0% | | ||
+-------------------------------------+------------+------------+------------+------------+------------+ | ||
| Total | 4 | 7 | 57.1% | 0 | 0.0% | | ||
+-------------------------------------+------------+------------+------------+------------+------------+ | ||
+-------------------------------------+------------+------------+------------+------------+ | ||
| File | Documented | Percentage | Examples | Percentage | | ||
+-------------------------------------+------------+------------+------------+------------+ | ||
| ...t/rustdoc-ui/coverage/private.rs | 4 | 57.1% | 0 | 0.0% | | ||
+-------------------------------------+------------+------------+------------+------------+ | ||
| Total | 4 | 57.1% | 0 | 0.0% | | ||
+-------------------------------------+------------+------------+------------+------------+ |
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,7 +1,7 @@ | ||
+-------------------------------------+------------+------------+------------+------------+------------+ | ||
| File | Documented | Total | Percentage | Examples | Percentage | | ||
+-------------------------------------+------------+------------+------------+------------+------------+ | ||
| ...oc-ui/coverage/statics-consts.rs | 6 | 7 | 85.7% | 0 | 0.0% | | ||
+-------------------------------------+------------+------------+------------+------------+------------+ | ||
| Total | 6 | 7 | 85.7% | 0 | 0.0% | | ||
+-------------------------------------+------------+------------+------------+------------+------------+ | ||
+-------------------------------------+------------+------------+------------+------------+ | ||
| File | Documented | Percentage | Examples | Percentage | | ||
+-------------------------------------+------------+------------+------------+------------+ | ||
| ...oc-ui/coverage/statics-consts.rs | 6 | 85.7% | 0 | 0.0% | | ||
+-------------------------------------+------------+------------+------------+------------+ | ||
| Total | 6 | 85.7% | 0 | 0.0% | | ||
+-------------------------------------+------------+------------+------------+------------+ |
Oops, something went wrong.