Skip to content

Incorrect mismatched-arg-count with nalgebra 0.26.2's Points #8896

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
lasa01 opened this issue May 20, 2021 · 1 comment
Closed

Incorrect mismatched-arg-count with nalgebra 0.26.2's Points #8896

lasa01 opened this issue May 20, 2021 · 1 comment

Comments

@lasa01
Copy link

lasa01 commented May 20, 2021

The following code causes incorrect mismatched-arg-count, cargo check reports no problems.

Cargo.toml:

[dependencies]
nalgebra = "0.26.2"

src/main.rs:

use nalgebra::Point3;

fn main() {
    let _ = Point3::new(1.0, 2.0, 3.0);
}

Error: Expected 1 argument, found 3 (rust-analyzer(mismatched-arg-count))

Downgrading nalgebra to 0.25.* or below fixes the issue.

Same happens with every Point* type except Point1, rust-analyzer thinks the constructor should have 1 argument.

Running on VSCode on Windows 10 with rust-analyzer version: b82458818 2021-05-17 stable.
Also tested on rust-analyzer version: 764241e38 2021-05-20 nightly, same issue.

@lnicola
Copy link
Member

lnicola commented May 20, 2021

Duplicate of #8654

@lnicola lnicola marked this as a duplicate of #8654 May 20, 2021
@lnicola lnicola closed this as completed May 20, 2021
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

No branches or pull requests

2 participants