Skip to content

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

Closed

Description

@samuela

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))

Activity

  1. matklad commented on Mar 13, 2020

    @matklad
    Contributor

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

  2. added a commit that references this issue on Mar 13, 2020
    bee5cdb
  3. added a commit that references this issue on Mar 13, 2020
    50f4ae7
  4. added a commit that references this issue on Apr 1, 2020
    ef6eb9f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions