rust-lang / rust-lang/rust-analyzer

Check all cfgs

Open
#16,191 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-feature
Dominant language
Rust
Stars
16.9k
Forks
2.2k
Avg merge
1d 12h
Merged PRs (30d)
72

Description

I often develop both sides of a feature (flag on and off) at once, and it's very annoying to have to change my settings.json just to get intellisense on the default-disabled features. I'd like it if rust-analyzer just checked both sides of it separately (as a setting ofc). That would also result in better errors. It could be as simple as checking with both --all-features and --no-default-features.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing rust-analyzer's settings.json handling for feature configuration and the existing paths that invoke --all-features or --no-default-features. Define the setting and verify that enabling it checks both feature configurations separately, with diagnostics and IntelliSense reflecting each result.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.