-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
False Positive on Missing Comma #17463
Comments
I think it is this commit |
It is. So I removed the added code and it works. |
Right, 158626b#diff-f002869811628add2076bd19a6d7b800a0186e9fcc946e953afa8c981ce342b0R278-R289 is wrong, that also needs to check that the expression is missing |
That is this test will currently result in that wrong expect when it shouldnt trigger there at all #[test]
fn fixup_record_ctor_field() {
check(
r#"
fn foo() {
R { f: a }
}
"#,
expect![[r#"
fn foo () {R {f : a __ra_fixup}}
"#]],
)
} |
LOL, I was literally typing I figured out what the problem code was. So just check that |
I added the |
rust-analyzer version:
rust-analyzer version: 0.0.0 (e08f795 2024-06-20) [/media/Other/ProgrammingProjects/RustProjects/rust-analyzer/target/release/rust-analyzer]
I built this based on the latest commit today.
rustc version: (eg. output of
rustc -V
)rustc 1.79.0 (129f3b996 2024-06-10)
editor or extension: VSCode 1.90.1 OpenSuse Tumbleweed Linux 6.9.5
relevant settings: (eg. client settings, or environment variables like
CARGO
,RUSTC
,RUSTUP_HOME
orCARGO_HOME
)VS Code Settings
repository link (if public, optional): (eg. rust-analyzer)
Private Repository however I was able to make a simple reproduction.
code snippet to reproduce:
So when I expand the post macro I get this.
I was going to try to fix it however, I have no idea where it is coming from. If someone has an idea where it is coming from let me know I will try to fix it myself.
If I move to the stable version of rust-analyzer so the release on 17th I have no issues. But the nightly release has issues.
The text was updated successfully, but these errors were encountered: