From aa00d1acd68911735334cb1c7de91d347bb56808 Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Sat, 19 Dec 2020 01:12:41 +0100 Subject: fixture -> ra_fixture --- crates/hir_def/src/nameres/tests.rs | 4 ++-- crates/hir_def/src/nameres/tests/macros.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/hir_def') diff --git a/crates/hir_def/src/nameres/tests.rs b/crates/hir_def/src/nameres/tests.rs index a4d1fb8f3..c459fa66d 100644 --- a/crates/hir_def/src/nameres/tests.rs +++ b/crates/hir_def/src/nameres/tests.rs @@ -13,8 +13,8 @@ use test_utils::mark; use crate::{db::DefDatabase, nameres::*, test_db::TestDB}; -fn compute_crate_def_map(fixture: &str) -> Arc { - let db = TestDB::with_files(fixture); +fn compute_crate_def_map(ra_fixture: &str) -> Arc { + let db = TestDB::with_files(ra_fixture); let krate = db.crate_graph().iter().next().unwrap(); db.crate_def_map(krate) } diff --git a/crates/hir_def/src/nameres/tests/macros.rs b/crates/hir_def/src/nameres/tests/macros.rs index bec1354bd..f9bf5bc72 100644 --- a/crates/hir_def/src/nameres/tests/macros.rs +++ b/crates/hir_def/src/nameres/tests/macros.rs @@ -632,7 +632,7 @@ pub struct bar; #[test] fn expand_derive() { let map = compute_crate_def_map( - " + r#" //- /main.rs crate:main deps:core use core::Copy; @@ -645,7 +645,7 @@ fn expand_derive() { #[rustc_builtin_macro] pub macro Clone {} - ", + "#, ); assert_eq!(map.modules[map.root].scope.impls().len(), 2); } -- cgit v1.2.3