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 complains about gfx_pipeline! in the cube example. #476

Open
haihala opened this issue Aug 12, 2021 · 1 comment
Open

Rust analyzer complains about gfx_pipeline! in the cube example. #476

haihala opened this issue Aug 12, 2021 · 1 comment

Comments

@haihala
Copy link

haihala commented Aug 12, 2021

{
	"resource": "/E:/projects/piston-examples/examples/cube.rs",
	"owner": "rustc",
	"code": {
		"value": "mismatched-arg-count",
		"target": {
			"$mid": 1,
			"external": "https://rust-analyzer.github.io/manual.html#mismatched-arg-count",
			"path": "/manual.html",
			"scheme": "https",
			"authority": "rust-analyzer.github.io",
			"fragment": "mismatched-arg-count"
		}
	},
	"severity": 8,
	"message": "expected 7 arguments, found 4",
	"source": "rust-analyzer",
	"startLineNumber": 25,
	"startColumn": 1,
	"endLineNumber": 31,
	"endColumn": 4
}

I get five of those, one for each row. I've tried to study the macro but can't see what's wrong with it.

Rust analyzer has nothing to say about the file where the macro is defined.

@bvssvni
Copy link
Member

bvssvni commented Sep 4, 2021

Check Cargo.lock to see if Cargo attempts to link multiple versions. The macro might have broken across versions and a cargo update might fix it.

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