fixture -> ra_fixture

This commit is contained in:
Jonas Schievink 2020-12-19 01:12:41 +01:00
parent d5edd0e928
commit aa00d1acd6
2 changed files with 4 additions and 4 deletions

View file

@ -13,8 +13,8 @@ use test_utils::mark;
use crate::{db::DefDatabase, nameres::*, test_db::TestDB}; use crate::{db::DefDatabase, nameres::*, test_db::TestDB};
fn compute_crate_def_map(fixture: &str) -> Arc<CrateDefMap> { fn compute_crate_def_map(ra_fixture: &str) -> Arc<CrateDefMap> {
let db = TestDB::with_files(fixture); let db = TestDB::with_files(ra_fixture);
let krate = db.crate_graph().iter().next().unwrap(); let krate = db.crate_graph().iter().next().unwrap();
db.crate_def_map(krate) db.crate_def_map(krate)
} }

View file

@ -632,7 +632,7 @@ pub struct bar;
#[test] #[test]
fn expand_derive() { fn expand_derive() {
let map = compute_crate_def_map( let map = compute_crate_def_map(
" r#"
//- /main.rs crate:main deps:core //- /main.rs crate:main deps:core
use core::Copy; use core::Copy;
@ -645,7 +645,7 @@ fn expand_derive() {
#[rustc_builtin_macro] #[rustc_builtin_macro]
pub macro Clone {} pub macro Clone {}
", "#,
); );
assert_eq!(map.modules[map.root].scope.impls().len(), 2); assert_eq!(map.modules[map.root].scope.impls().len(), 2);
} }