Don't lint about missing code examples in derived traits #88735
Merged
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @CraftSpider (or someone else) soon. Please see the contribution instructions for more information. |
This comment has been hidden.
This comment has been hidden.
hnj2
changed the title
[WIP] Don't lint about missing code examples in derived traits
Don't lint about missing code examples in derived traits
Sep 8, 2021
Hey, since you reviewed #88745 could you take a look at this? Thanks |
|
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Sep 17, 2021
Rollup of 10 pull requests Successful merges: - rust-lang#86382 (Make diagnostics clearer for `?` operators) - rust-lang#87529 (Fix ICE in `improper_ctypes_definitions` lint with all-ZST transparent types) - rust-lang#88339 (Add TcpListener::into_incoming and IntoIncoming) - rust-lang#88735 (Don't lint about missing code examples in derived traits) - rust-lang#88751 (Couple of changes to FileSearch and SearchPath) - rust-lang#88883 (Move some tests to more reasonable directories - 7) - rust-lang#88887 (Const Deref) - rust-lang#88911 (Improve error message for type mismatch in generator arguments) - rust-lang#89014 (PassWrapper: handle separate Module*SanitizerPass) - rust-lang#89033 (Set the library path in sysroot-crates-are-unstable) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
hnj2 commentedSep 7, 2021
•
edited
When the
missing_doc_code_examples
lint is performed it also requires that derived Trait implementations have a code example for each member etc., which causes undesirable behavior.Examples
With
missing_doc_code_examples
enable we are not able to use theClone
derive macro due to the generated code not being documented:yields:
closes #81775
The text was updated successfully, but these errors were encountered: