Rollup merge of #76642 - GuillaumeGomez:ignored-private-doc-test, r=jyn514
Do not lint ignored private doc tests Fixes #76457. r? @ehuss
This commit is contained in:
commit
ece688bae9
3 changed files with 20 additions and 12 deletions
|
|
@ -1,7 +1,7 @@
|
|||
+-------------------------------------+------------+------------+------------+------------+
|
||||
| File | Documented | Percentage | Examples | Percentage |
|
||||
+-------------------------------------+------------+------------+------------+------------+
|
||||
| ...tdoc-ui/coverage/doc-examples.rs | 4 | 100.0% | 2 | 50.0% |
|
||||
| ...tdoc-ui/coverage/doc-examples.rs | 4 | 100.0% | 1 | 25.0% |
|
||||
+-------------------------------------+------------+------------+------------+------------+
|
||||
| Total | 4 | 100.0% | 2 | 50.0% |
|
||||
| Total | 4 | 100.0% | 1 | 25.0% |
|
||||
+-------------------------------------+------------+------------+------------+------------+
|
||||
|
|
|
|||
12
src/test/rustdoc-ui/private-doc-test.rs
Normal file
12
src/test/rustdoc-ui/private-doc-test.rs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
// check-pass
|
||||
|
||||
#![deny(private_doc_tests)]
|
||||
|
||||
mod foo {
|
||||
/// private doc test
|
||||
///
|
||||
/// ```ignore (used for testing ignored doc tests)
|
||||
/// assert!(false);
|
||||
/// ```
|
||||
fn bar() {}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue