mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-15 09:27:27 +00:00
fixture -> ra_fixture
This commit is contained in:
parent
d5edd0e928
commit
aa00d1acd6
2 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue