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:
Aleksey Kladov 2019-02-11 15:39:26 +03:00
parent 2babbbb978
commit 58ed8ee665
5 changed files with 81 additions and 18 deletions

View file

@ -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;
}
",
);
}
}