mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Prepare ItemScope for IDE import resolution
This commit is contained in:
parent
1b678231d7
commit
af8048266c
11 changed files with 174 additions and 67 deletions
|
|
@ -1293,4 +1293,22 @@ pub mod prelude {
|
|||
"None",
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn different_crate_renamed_through_dep() {
|
||||
check_found_path(
|
||||
r#"
|
||||
//- /main.rs crate:main deps:intermediate
|
||||
$0
|
||||
//- /intermediate.rs crate:intermediate deps:std
|
||||
pub extern crate std as std_renamed;
|
||||
//- /std.rs crate:std
|
||||
pub struct S;
|
||||
"#,
|
||||
"intermediate::std_renamed::S",
|
||||
"intermediate::std_renamed::S",
|
||||
"intermediate::std_renamed::S",
|
||||
"intermediate::std_renamed::S",
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue