Skip to content
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

rust-analyzer reports errors parsing that are accepted by rustc #3571

Closed
samuela opened this issue Mar 13, 2020 · 1 comment · Fixed by #3576
Closed

rust-analyzer reports errors parsing that are accepted by rustc #3571

samuela opened this issue Mar 13, 2020 · 1 comment · Fixed by #3576

Comments

@samuela
Copy link

samuela commented Mar 13, 2020

I have a file (https://github.com/samuela/rustybox/blob/master/procps/ps.rs) that rust-analyzer complains about. Specifically, it's not happy with the ellipsis type here: https://github.com/samuela/rustybox/blob/master/procps/ps.rs#L18:
Screenshot from 2020-03-12 19-44-14

However, the file is syntactically correct and the project compiles fine as of all recent rust versions including

  nightly-x86_64-unknown-linux-gnu updated - rustc 1.43.0-nightly (c20d7eecb 2020-03-11) (from rustc 1.43.0-nightly (158127853 2020-03-10))
@matklad
Copy link
Member

matklad commented Mar 13, 2020

oh my, haven't realizes this is actually valid: rust-lang/reference#781

bors bot added a commit that referenced this issue Mar 13, 2020
3576: Parse variadics correctly r=matklad a=matklad

closes #3571



bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
@bors bors bot closed this as completed in bee5cdb Mar 13, 2020
JoshMcguigan pushed a commit to JoshMcguigan/rust-analyzer that referenced this issue Apr 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants