Closed yipu3 closed 48 minutes ago
Your rustc version is very old compared to the rust-analyzer releases so its likely to fail because of that given the error is within a standard library macro. Either upgrade your rust toolchain or downgrade your rust-analyzer, we generally dont support more than the ~2 latest stable releases for a given rust-analyzer version
I also have this issue on the latest version of rust / nightly release of rust-analyzer.
Cargo check / build reports no errors and if i restart rust analyzer the error disappears but then will reappear after some time.
I suspect its something to do with my macro, ill try make a smaller example
rust-analyzer version: rust-analyzer version: 0.3.1995-standalone (c86d6230f 2024-06-10) [/Users/Philip/.vscode/extensions/rust-lang.rust-analyzer-0.3.1995-darwin-x64/server/rust-analyzer]
rustc version: rustc 1.58.1 (db9d1b20b 2022-01-20)
editor or extension: VSCode, v0.3.1995
relevant settings: (eg. client settings, or environment variables like
CARGO
,RUSTC
,RUSTUP_HOME
orCARGO_HOME
)repository link (if public, optional): https://github.com/yipu3/algorithm-practice/tree/main/leetcode/502/rust
code snippet to reproduce: