piston-examples icon indicating copy to clipboard operation
piston-examples copied to clipboard

Rust analyzer complains about gfx_pipeline! in the cube example.

Open haihala opened this issue 4 years ago • 1 comments

{
	"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.

haihala avatar Aug 12 '21 16:08 haihala

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.

bvssvni avatar Sep 04 '21 20:09 bvssvni