-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
missing_docs triggers for integration tests #137561
Copy link
Copy link
Open
Labels
A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.C-discussionCategory: Discussion or questions that doesn't represent real issues.Category: Discussion or questions that doesn't represent real issues.L-missing_docsLint: missing_docsLint: missing_docsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.C-discussionCategory: Discussion or questions that doesn't represent real issues.Category: Discussion or questions that doesn't represent real issues.L-missing_docsLint: missing_docsLint: missing_docsT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Summary
If you warn on
missing_docs, every integration test causes a warning fromclippy --tests.I think integration tests should be exempt from
missing_docs.My editor (https://zed.dev) (and maybe rust-analyzer by default?) shows
clippy --testsmessages too (and not justclippy), so having any integration tests in the tree makesmissing_docspractically unusable.Lint Name
missing_docs
Reproducer
Using the
fn addexample fromcargo init --libAdd to
Cargo.tomladd new file
tests/two_plus_two.rsAnd now
clippy --testscomplains:Version
Additional Labels
No response