use extern prelude in Resolver
This fixes two bugs: - completion for paths works again - we handle extern prelude shadowing more correctly
This commit is contained in:
@@ -186,4 +186,20 @@ mod tests {
|
||||
",
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn completes_use_paths_across_crates() {
|
||||
check_reference_completion(
|
||||
"completes_use_paths_across_crates",
|
||||
"
|
||||
//- /main.rs
|
||||
use foo::<|>;
|
||||
|
||||
//- /foo/lib.rs
|
||||
pub mod bar {
|
||||
pub struct S;
|
||||
}
|
||||
",
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user