rust-lang / rust-lang/rust-analyzer
Always uses main branch
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 16.9k
- Forks
- 2.2k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 72
Description
I have this in my Cargo.toml
[dependencies]
# ...
texture_packer = { git = "https://github.com/botahamec/piston_texture_packer", branch = "u16" }
But I'm still getting a compiler error which should only appear on the main branch. I've tried restarting rust-analyzer, restarting VSCode, and running cargo update. None of that seems to fix it. Running cargo clean does, however. Running cargo check didn't give me this error, even before I ran cargo clean or cargo update.
rust-analyzer version: rust-analyzer version: 0.4.1259-standalone (53b6d69e9 2022-10-24)
rustc version: 1.66.0-nightly (dcb376115 2022-10-20)
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 report with the shown Cargo.toml dependency and compare rust-analyzer's diagnostics with cargo check before and after cargo clean. The issue is resolved when rust-analyzer respects the selected git branch without requiring a clean build.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100