mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2026-03-21 20:34:07 +00:00
replace panic_any with resume_unwind on Client panic cancelled message
This commit is contained in:
@@ -3,7 +3,7 @@ use proc_macro_api::{
|
||||
ProtocolFormat, bidirectional_protocol::msg as bidirectional, legacy_protocol::msg as legacy,
|
||||
version::CURRENT_API_VERSION,
|
||||
};
|
||||
use std::panic::panic_any;
|
||||
use std::panic::{panic_any, resume_unwind};
|
||||
use std::{
|
||||
io::{self, BufRead, Write},
|
||||
ops::Range,
|
||||
@@ -199,7 +199,7 @@ impl<'a> ProcMacroClientHandle<'a> {
|
||||
fn handle_failure(failure: Result<bidirectional::SubResponse, ProcMacroClientError>) -> ! {
|
||||
match failure {
|
||||
Err(ProcMacroClientError::Cancelled { reason }) => {
|
||||
panic_any(ProcMacroPanicMarker::Cancelled { reason });
|
||||
resume_unwind(Box::new(ProcMacroPanicMarker::Cancelled { reason }));
|
||||
}
|
||||
Err(err) => {
|
||||
panic_any(ProcMacroPanicMarker::Internal {
|
||||
|
||||
Reference in New Issue
Block a user