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};
fn compute_crate_def_map(fixture: &str) -> Arc<CrateDefMap> {
let db = TestDB::with_files(fixture);
fn compute_crate_def_map(ra_fixture: &str) -> Arc<CrateDefMap> {
let db = TestDB::with_files(ra_fixture);
let krate = db.crate_graph().iter().next().unwrap();
db.crate_def_map(krate)
}

View file

@ -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);
}