forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#75776 - GuillaumeGomez:missing-doc-examples-l…
…int-improvements, r=jyn514 Missing doc examples lint improvements Fixes rust-lang#75719. To be merged after rust-lang#75718 (only the two last commits are from this PR). Since you already reviewed rust-lang#75718, I'll set you as reviewer here as well. :) r? @jyn514
- Loading branch information
Showing
4 changed files
with
74 additions
and
27 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
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,21 +1,39 @@ | ||
error: missing code example in this documentation | ||
--> $DIR/lint-missing-doc-code-example.rs:19:1 | ||
--> $DIR/lint-missing-doc-code-example.rs:49:1 | ||
| | ||
LL | / mod module1 { | ||
LL | | } | ||
| |_^ | ||
LL | /// Doc | ||
| ^^^^^^^ | ||
| | ||
note: the lint level is defined here | ||
--> $DIR/lint-missing-doc-code-example.rs:2:9 | ||
| | ||
LL | #![deny(missing_doc_code_examples)] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: missing code example in this documentation | ||
--> $DIR/lint-missing-doc-code-example.rs:63:1 | ||
| | ||
LL | /// Doc | ||
| ^^^^^^^ | ||
|
||
error: missing code example in this documentation | ||
--> $DIR/lint-missing-doc-code-example.rs:56:1 | ||
| | ||
LL | /// Doc | ||
| ^^^^^^^ | ||
|
||
error: missing code example in this documentation | ||
--> $DIR/lint-missing-doc-code-example.rs:19:1 | ||
| | ||
LL | / mod module1 { | ||
LL | | } | ||
| |_^ | ||
|
||
error: missing code example in this documentation | ||
--> $DIR/lint-missing-doc-code-example.rs:37:3 | ||
| | ||
LL | /// doc | ||
| ^^^^^^^ | ||
|
||
error: aborting due to 2 previous errors | ||
error: aborting due to 5 previous errors | ||
|