piston-examples
piston-examples copied to clipboard
Rust analyzer complains about gfx_pipeline! in the cube example.
{
"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.
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.