Closed
Description
rust-analyzer version: rust-analyzer version: 0.4.1423-standalone (73e2505 2023-03-03)
rustc version: rustc 1.69.0-nightly (d962ea578 2023-02-26)
We have a macro named test!
that we need to use inside our tests;
This redefinition causes RA to complain about the regular #[test]
attributes.
A screenshot is better a showcasing this:
The error is:
[{
"resource": "/c:/Users/angus/Documents/GitHub/extendr/extendr-api/src/lib.rs",
"owner": "rustc",
"code": {
"value": "unresolved-macro-call",
"target": {
"$mid": 1,
"external": "https://rust-analyzer.github.io/manual.html#unresolved-macro-call",
"path": "/manual.html",
"scheme": "https",
"authority": "rust-analyzer.github.io",
"fragment": "unresolved-macro-call"
}
},
"severity": 8,
"message": "unresolved macro `test`",
"source": "rust-analyzer",
"startLineNumber": 745,
"startColumn": 5,
"endLineNumber": 745,
"endColumn": 12
}]
I'm more than happy to dig out more information on this.