Skip to content

Lots of doc tests are not executed #4319

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
phansch opened this issue Aug 1, 2019 · 0 comments · Fixed by #4331
Closed

Lots of doc tests are not executed #4319

phansch opened this issue Aug 1, 2019 · 0 comments · Fixed by #4331
Assignees

Comments

@phansch
Copy link
Member

phansch commented Aug 1, 2019

From #4307 (comment)

If I understand the declare_clippy_lint macro correctly, doc tests are only executed for style and correctness lints. The other lint groups are missing the $(#[$attr])* in front. Adding the missing ones resulted in 137 failing doc tests.

@phansch phansch self-assigned this Aug 1, 2019
phansch added a commit to phansch/rust-clippy that referenced this issue Aug 2, 2019
phansch added a commit to phansch/rust-clippy that referenced this issue Aug 2, 2019
bors added a commit that referenced this issue Aug 2, 2019
Doctests: Enable running doc tests for complexity lints

changelog: none

master: `113 passed; 0 failed; 91 ignored; 0 measured; 0 filtered out`
this PR: `181 passed; 0 failed; 110 ignored; 0 measured; 0 filtered out`

cc #4319
phansch added a commit to phansch/rust-clippy that referenced this issue Aug 3, 2019
This should be possible to merge independently of rust-lang#4325

cc rust-lang#4319
bors added a commit that referenced this issue Aug 3, 2019
Doctests: Enable running doc tests for complexity lints

changelog: none

master: `113 passed; 0 failed; 91 ignored; 0 measured; 0 filtered out`
this PR: `181 passed; 0 failed; 110 ignored; 0 measured; 0 filtered out`

cc #4319
bors added a commit that referenced this issue Aug 3, 2019
Doctests: Enable running doc tests for complexity lints

changelog: none

master: `113 passed; 0 failed; 91 ignored; 0 measured; 0 filtered out`
this PR: `181 passed; 0 failed; 110 ignored; 0 measured; 0 filtered out`

cc #4319
bors added a commit that referenced this issue Aug 3, 2019
Doctests: Enable running doc tests for perf lints

changelog: none

This should be possible to merge independently of #4325

cc #4319
flip1995 added a commit to flip1995/rust-clippy that referenced this issue Aug 5, 2019
Doctests: Enable running doc tests for pedantic lints

changelog: none

master: 202 passed; 0 failed; 122 ignored; 0 measured; 0 filtered out
this PR: 254 passed; 0 failed; 131 ignored; 0 measured; 0 filtered out

cc rust-lang#4319
flip1995 added a commit to flip1995/rust-clippy that referenced this issue Aug 5, 2019
Doctests: Enable running doc tests for nursery lints

changelog: none

master: 202 passed; 0 failed; 122 ignored; 0 measured; 0 filtered out
this PR: 213 passed; 0 failed; 122 ignored; 0 measured; 0 filtered out

cc rust-lang#4319
flip1995 added a commit to flip1995/rust-clippy that referenced this issue Aug 5, 2019
…1995

Doctests: Enable running doc tests for restriction lints

changelog: Enabled remaining doc tests for lint documentation page

master: 202 passed; 0 failed; 122 ignored; 0 measured; 0 filtered out
this PR: 231 passed; 0 failed; 123 ignored; 0 measured; 0 filtered out

Closes rust-lang#4319 (assuming this is merged after rust-lang#4329 and rust-lang#4330)
@bors bors closed this as completed in #4331 Aug 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant