rust-lang / rust-lang/rust-clippy
Lint usages of `tcx.hir.body` without accompaning `tcx.body_tables`
Open
Nobody has claimed this yet.
C-bug
L-correctness
T-middle
- Dominant language
- Rust
- Stars
- 13.5k
- Forks
- 2.2k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 32
Description
If we don't do this consistently we keep having hidden panics all over clippy.
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.
Research direction
Start by locating usages of tcx.hir.body in the rust-clippy codebase and determine how corresponding tcx.body_tables accesses are represented. Define the lint's scope and verify that it identifies inconsistent usage without introducing false positives. Done means the relevant usages are checked consistently and the hidden panics described in the issue are prevented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100