`confusable_idents` should respect per-item lint level configuration
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.1k
- PR merge metrics
- PR metrics pending
Description
Trying to #[allow] this lint on a specific item is currently ignored and results in a warning
allow(confusable_idents) is ignored unless specified at crate level
Since the lint is generally helpful, I only want to disable it for specific modules (in this case, one that contains a lot of mathematical formulae transcribed using the original notation), but that doesn't actually seem to work.
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 reproducing the warning with #[allow(confusable_idents)] on a specific item, then trace the compiler's handling of the confusable_idents lint and its per-item lint levels. Done means the lint can be disabled for the targeted item or module while remaining enabled elsewhere, with coverage for both cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100