rust-lang / rust-lang/rust-clippy
Empty Test Lint
Open
@willwang-io is already working on this.
Since Aug 21, 2026.
A-lint
- Dominant language
- Rust
- Stars
- 13.5k
- Forks
- 2.2k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 32
Description
What it does
This lint should suggest removing empty test functions.
Advantage
By applying this lint it would make source code cleaner / shorted by removing tests that do nothing.
Drawbacks
No response
Example
#[test]
fn my_empty_test() {
}
Could be removed
Comparison with existing lints
To my knowledge this lint doesn't exist yet.
Additional Context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.