mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-31 07:37:30 +00:00
Add new_source_root meta to test fixtures
This commit is contained in:
parent
e97cd709cd
commit
75fafd6fcc
3 changed files with 28 additions and 7 deletions
|
@ -1275,13 +1275,13 @@ fn foo(_: bool) -> bo$0ol { true }
|
|||
fn test_transitive() {
|
||||
check(
|
||||
r#"
|
||||
//- /level3/level3.rs crate:level3
|
||||
//- /level3.rs new_source_root: crate:level3
|
||||
pub struct Fo$0o;
|
||||
//- /level2/level2.rs crate:level2 deps:level3
|
||||
//- /level2.rs new_source_root: crate:level2 deps:level3
|
||||
pub use level3::Foo;
|
||||
//- /level1/level1.rs crate:level1 deps:level2
|
||||
//- /level1.rs new_source_root: crate:level1 deps:level2
|
||||
pub use level2::Foo;
|
||||
//- /level0/level0.rs crate:level0 deps:level1
|
||||
//- /level0.rs new_source_root: crate:level0 deps:level1
|
||||
pub use level1::Foo;
|
||||
"#,
|
||||
expect![[r#"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue