Unnamed repository; edit this file 'description' to name the repository.
Add more track_caller
mo8it 2024-08-12
parent b06cd17 · commit 66859ed
-rw-r--r--crates/rust-analyzer/src/flycheck.rs1
-rw-r--r--crates/rust-analyzer/src/global_state.rs3
2 files changed, 3 insertions, 1 deletions
diff --git a/crates/rust-analyzer/src/flycheck.rs b/crates/rust-analyzer/src/flycheck.rs
index 168f9702d1..acd6c3fcd2 100644
--- a/crates/rust-analyzer/src/flycheck.rs
+++ b/crates/rust-analyzer/src/flycheck.rs
@@ -478,6 +478,7 @@ impl FlycheckActor {
Some(cmd)
}
+ #[track_caller]
fn send(&self, check_task: FlycheckMessage) {
self.sender.send(check_task).unwrap();
}
diff --git a/crates/rust-analyzer/src/global_state.rs b/crates/rust-analyzer/src/global_state.rs
index bb883a9eaf..88ff25e5d1 100644
--- a/crates/rust-analyzer/src/global_state.rs
+++ b/crates/rust-analyzer/src/global_state.rs
@@ -558,8 +558,9 @@ impl GlobalState {
self.req_queue.incoming.is_completed(&request.id)
}
+ #[track_caller]
fn send(&self, message: lsp_server::Message) {
- self.sender.send(message).unwrap()
+ self.sender.send(message).unwrap();
}
pub(crate) fn publish_diagnostics(