rust-lang / rust-lang/rust-analyzer
FR: Option to add "pub" instead of "pub(crate)" when applying a fix
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 16.9k
- Forks
- 2.2k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 72
Description
rust-analyzer has several fixes that change the visibility of a module/function/struct.
However, these add pub(crate) which I personally dislike, because it's more verbose than pub and a meaningless distinction for a binary project.
It would be nice if there was a setting to control this.
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
No files, tests, or entry points are named. Start by locating the visibility-changing fixes and the existing settings infrastructure, then determine how a setting could control pub versus pub(crate). Done means the selected fixes consistently use the configured visibility and have coverage for both choices.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100