mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Recognize proc macro server unexpectedly exiting and report the exit code
This commit is contained in:
parent
f5f7ddae23
commit
21a953fe37
3 changed files with 52 additions and 12 deletions
|
@ -24,7 +24,8 @@ fn main() -> std::io::Result<()> {
|
|||
|
||||
#[cfg(not(any(feature = "sysroot-abi", rust_analyzer)))]
|
||||
fn run() -> io::Result<()> {
|
||||
panic!("proc-macro-srv-cli requires the `sysroot-abi` feature to be enabled");
|
||||
eprintln!("proc-macro-srv-cli requires the `sysroot-abi` feature to be enabled");
|
||||
std::process::exit(70);
|
||||
}
|
||||
|
||||
#[cfg(any(feature = "sysroot-abi", rust_analyzer))]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue