Fail spawning proc-macro servers when their api version is newer than r-a's

This commit is contained in:
Lukas Wirth 2023-02-03 10:38:38 +01:00
parent c40b0895f0
commit 8e998c4aa7
3 changed files with 10 additions and 3 deletions

View file

@ -16,7 +16,7 @@ pub fn run() -> io::Result<()> {
}
msg::Request::ExpandMacro(task) => msg::Response::ExpandMacro(srv.expand(task)),
msg::Request::ApiVersionCheck {} => {
msg::Response::ApiVersionCheck(proc_macro_api::msg::API_VERSION)
msg::Response::ApiVersionCheck(proc_macro_api::msg::CURRENT_API_VERSION)
}
};
write_response(res)?