about summary refs log tree commit diff
diff options
context:
space:
mode:
authorA4-Tacks <wdsjxhno1001@163.com>2025-09-19 13:39:45 +0800
committerA4-Tacks <wdsjxhno1001@163.com>2025-09-19 13:39:45 +0800
commitf69da330493233c9f5485919cc7c421c35a83bbc (patch)
treee4edbf3560bb850ade97735fbda99402799608e4
parentbb7cdc25d48f18667056adcb2380630b7d3b9f0b (diff)
downloadrust-f69da330493233c9f5485919cc7c421c35a83bbc.tar.gz
rust-f69da330493233c9f5485919cc7c421c35a83bbc.zip
Add `#[track_caller]` for check_assist_by_label
-rw-r--r--src/tools/rust-analyzer/crates/ide-assists/src/tests.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/rust-analyzer/crates/ide-assists/src/tests.rs b/src/tools/rust-analyzer/crates/ide-assists/src/tests.rs
index 3e422ae1b8f..c0637a7470f 100644
--- a/src/tools/rust-analyzer/crates/ide-assists/src/tests.rs
+++ b/src/tools/rust-analyzer/crates/ide-assists/src/tests.rs
@@ -180,6 +180,7 @@ pub(crate) fn check_assist_import_one(
 
 // There is no way to choose what assist within a group you want to test against,
 // so this is here to allow you choose.
+#[track_caller]
 pub(crate) fn check_assist_by_label(
     assist: Handler,
     #[rust_analyzer::rust_fixture] ra_fixture_before: &str,