Skip to content

Commit db29fd3

Browse files
authored
Merge pull request #18463 from benluiwj/fix/proc-macro-server-msg-improvement
Improve error message for too new proc-macro server
2 parents cf6bc48 + f5e1dce commit db29fd3

File tree

1 file changed

+2
-2
lines changed
  • src/tools/rust-analyzer/crates/proc-macro-api/src

1 file changed

+2
-2
lines changed

src/tools/rust-analyzer/crates/proc-macro-api/src/process.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ impl ProcMacroProcessSrv {
5656
match srv.version_check() {
5757
Ok(v) if v > CURRENT_API_VERSION => Err(io::Error::new(
5858
io::ErrorKind::Other,
59-
format!(
60-
"proc-macro server's api version ({v}) is newer than rust-analyzer's ({CURRENT_API_VERSION})"
59+
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}).
60+
This will prevent proc-macro expansion from working. Please consider updating your rust-analyzer to ensure compatibility with your current toolchain."
6161
),
6262
)),
6363
Ok(v) => {

0 commit comments

Comments
 (0)