Unnamed repository; edit this file 'description' to name the repository.
Merge pull request #20701 from A4-Tacks/track-caller-assist-test
Add `#[track_caller]` for check_assist_by_label
Chayim Refael Friedman 7 months ago
parent 2c6f0fc · parent 42bba76 · commit b12a129
-rw-r--r--crates/ide-assists/src/tests.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/ide-assists/src/tests.rs b/crates/ide-assists/src/tests.rs
index 3e422ae1b8..c0637a7470 100644
--- a/crates/ide-assists/src/tests.rs
+++ b/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,