diff options
| author | bors <bors@rust-lang.org> | 2021-09-13 09:41:22 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-09-13 09:41:22 +0000 |
| commit | 1cd17addad57e2aaf5dc6d3febe042ebb733bee3 (patch) | |
| tree | 77e6aefad6b43ffd1f6a1a19a0c35bbc847a55c3 /src/test/rustdoc-ui/lint-missing-doc-code-example.rs | |
| parent | 61a102914335caebb8c67079bc351822a12862ee (diff) | |
| parent | c86c63436ac074d824d76e151c468554191e168e (diff) | |
| download | rust-1cd17addad57e2aaf5dc6d3febe042ebb733bee3.tar.gz rust-1cd17addad57e2aaf5dc6d3febe042ebb733bee3.zip | |
Auto merge of #88745 - hnj2:allow-trait-impl-missing-code, r=GuillaumeGomez
Allow missing code examples in trait impls. Excludes Trait implementations from the items that need to have doc code examples when using the `rustdoc::missing_doc_code_examples` lint. For details see #88741 fixes #88741 r? `@jyn514`
Diffstat (limited to 'src/test/rustdoc-ui/lint-missing-doc-code-example.rs')
| -rw-r--r-- | src/test/rustdoc-ui/lint-missing-doc-code-example.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/rustdoc-ui/lint-missing-doc-code-example.rs b/src/test/rustdoc-ui/lint-missing-doc-code-example.rs index 41e88477926..7dd2ebfedbb 100644 --- a/src/test/rustdoc-ui/lint-missing-doc-code-example.rs +++ b/src/test/rustdoc-ui/lint-missing-doc-code-example.rs @@ -70,6 +70,13 @@ pub union Union { b: f32, } +// no code example and it's fine! +impl Clone for Struct { + fn clone(&self) -> Self { + Self { field: self.field } + } +} + #[doc(hidden)] pub mod foo { |
