Skip to content

Syntax errors for valid GATs sytnax #9818

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

Closed
louaykamel opened this issue Aug 8, 2021 · 2 comments
Closed

Syntax errors for valid GATs sytnax #9818

louaykamel opened this issue Aug 8, 2021 · 2 comments
Labels
A-parser parser issues S-actionable Someone could pick this issue up and work on it right now

Comments

@louaykamel
Copy link

rust-analyzer is rendering syntax errors.

impl SomeStruct {
    fn process<T>(v: T) -> <Self as GAT>::R<T>
    // Issue: rust-analyzer is complaining about syntax errors for valid GATs syntax.
    where Self: GAT<R<T> = T>
    {
        SomeStruct::do_something(v)
    }
}

Please have a look at rust-lang/rustfmt#4943 for further details.

Note: please update your rustfmt from master branch to reproduce the bug.

@louaykamel louaykamel changed the title Syntax errors for vaild GATs sytnax Syntax errors for valid GATs sytnax Aug 8, 2021
@Veykril Veykril added A-parser parser issues S-actionable Someone could pick this issue up and work on it right now labels Aug 8, 2021
@Veykril
Copy link
Member

Veykril commented Aug 8, 2021

Actually this has been fixed already, make sure you are on the latest rust-analyzer, #9619

@louaykamel
Copy link
Author

@Veykril You're right, not sure why my atom ide-rust installed an old version in my .local/bin folder, however I replaced it with new rust-analyzer binary and it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-parser parser issues S-actionable Someone could pick this issue up and work on it right now
Projects
None yet
Development

No branches or pull requests

2 participants