"ra@gennew" appearing in inline suggestion
rust-analyzer version: 0.3.1657-standalone
rustc version: 1.71.1
relevant settings: none
Steps to reproduce:
- Open a rust file
- Create a new function
- Type
for foo.
Example:
fn bar() {
for foo.
}
Rust analyzer will suggest the text <ra@gennew>[some number] as a property
Expected behavior: No suggestion is made
Actual behavior: The text is suggested
Duplicate of #14986 but I will close that one since this one is more detailed.
Can we filter out completion items like ra@gennew<idx> just based on name matching?
We probably should for now, the proper fix is to probably have desugaring hygiene like rustc and then once we have hygienic name resolution they'd be filtered out on their own.
any updates on this? it's been bugging me ever since i started using rust analyzer.
Do you have an example snippet at hand that triggers this? The one in the issue does not seem to trigger this behavior anymore
fn bar() {
for i in 0..10 {
for j in 0..10 {
r| // cursor
}
}
}