Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide/src/references.rs')
-rw-r--r--crates/ide/src/references.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/crates/ide/src/references.rs b/crates/ide/src/references.rs
index 46714df8d6..b1079312d3 100644
--- a/crates/ide/src/references.rs
+++ b/crates/ide/src/references.rs
@@ -1255,11 +1255,15 @@ impl Foo {
);
}
- fn check(ra_fixture: &str, expect: Expect) {
+ fn check(#[rust_analyzer::rust_fixture] ra_fixture: &str, expect: Expect) {
check_with_scope(ra_fixture, None, expect)
}
- fn check_with_scope(ra_fixture: &str, search_scope: Option<SearchScope>, expect: Expect) {
+ fn check_with_scope(
+ #[rust_analyzer::rust_fixture] ra_fixture: &str,
+ search_scope: Option<SearchScope>,
+ expect: Expect,
+ ) {
let (analysis, pos) = fixture::position(ra_fixture);
let refs = analysis.find_all_refs(pos, search_scope).unwrap().unwrap();