Skip to content

Commit 300aee8

Browse files
Merge pull request rust-lang#20701 from A4-Tacks/track-caller-assist-test
Add `#[track_caller]` for check_assist_by_label
2 parents 6ec196a + f69da33 commit 300aee8

File tree

1 file changed

+1
-0
lines changed
  • src/tools/rust-analyzer/crates/ide-assists/src

1 file changed

+1
-0
lines changed

src/tools/rust-analyzer/crates/ide-assists/src/tests.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ pub(crate) fn check_assist_import_one(
180180

181181
// There is no way to choose what assist within a group you want to test against,
182182
// so this is here to allow you choose.
183+
#[track_caller]
183184
pub(crate) fn check_assist_by_label(
184185
assist: Handler,
185186
#[rust_analyzer::rust_fixture] ra_fixture_before: &str,

0 commit comments

Comments
 (0)