diff options
| author | Laurențiu Nicola <lnicola@users.noreply.github.com> | 2024-11-02 13:58:33 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-02 13:58:33 +0000 |
| commit | db29fd3dfc17deaf053338d46e688269b35c7b89 (patch) | |
| tree | f9105c0cc1d1eebb21107884291a1ae34f2cdb0a | |
| parent | cf6bc48353ba46fceb43f5efc37858c471d05bb7 (diff) | |
| parent | f5e1dce490e6105ff057bb24a4f4edbd61c85126 (diff) | |
Merge pull request #18463 from benluiwj/fix/proc-macro-server-msg-improvement
Improve error message for too new proc-macro server
| -rw-r--r-- | src/tools/rust-analyzer/crates/proc-macro-api/src/process.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/rust-analyzer/crates/proc-macro-api/src/process.rs b/src/tools/rust-analyzer/crates/proc-macro-api/src/process.rs index c965257a5c5..4045e25fdf1 100644 --- a/src/tools/rust-analyzer/crates/proc-macro-api/src/process.rs +++ b/src/tools/rust-analyzer/crates/proc-macro-api/src/process.rs @@ -56,8 +56,8 @@ impl ProcMacroProcessSrv { match srv.version_check() { Ok(v) if v > CURRENT_API_VERSION => Err(io::Error::new( io::ErrorKind::Other, - format!( - "proc-macro server's api version ({v}) is newer than rust-analyzer's ({CURRENT_API_VERSION})" + format!( "The version of the proc-macro server ({v}) in your Rust toolchain is newer than the version supported by your rust-analyzer ({CURRENT_API_VERSION}). + This will prevent proc-macro expansion from working. Please consider updating your rust-analyzer to ensure compatibility with your current toolchain." ), )), Ok(v) => { |
