rust-lang / rust-lang/rust-analyzer
Tuple struct field is parsed as float
Open
Nobody has claimed this yet.
A-parser
C-bug
E-hard
S-actionable
- Dominant language
- Rust
- Stars
- 16.9k
- Forks
- 2.2k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 72
Description
use std::collections::HashMap;
pub struct Graph(HashMap<i32, Vec<i32>>);
impl Graph {
pub fn new() -> Self {
Graph(HashMap::new())
}
pub fn add_edge(&mut self, u: i32, v: i32) {
self.0.<|>
}
}
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 completion or parsing behavior at the cursor in the Graph::add_edge example, then trace how the tuple field expression is interpreted. No source file or test is named in the issue; done means the tuple struct field is no longer treated as a float.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100