mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 15:15:24 +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};
|
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)
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue