diff options
author | Ville Penttinen <[email protected]> | 2019-02-22 08:15:23 +0000 |
---|---|---|
committer | Ville Penttinen <[email protected]> | 2019-02-22 08:15:23 +0000 |
commit | 247d1c17b385ff8a8c1dda2e899495146b643b98 (patch) | |
tree | d0b80f6321d596cc151488e88a2747d168f7137c /crates/ra_ide_api/src/completion/complete_path.rs | |
parent | 39679d499f5e0b5d26ae0f0b707f6db8901cdb66 (diff) |
Change resolve_path to return the fully resolved path or PerNs::none
This also adds new pub(crate) resolve_path_segments which returns the
PathResult, which may or may not be fully resolved. PathResult is also now
pub(crate) since it is an implementation detail.
Diffstat (limited to 'crates/ra_ide_api/src/completion/complete_path.rs')
-rw-r--r-- | crates/ra_ide_api/src/completion/complete_path.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_ide_api/src/completion/complete_path.rs b/crates/ra_ide_api/src/completion/complete_path.rs index a0c5572d5..d337fe970 100644 --- a/crates/ra_ide_api/src/completion/complete_path.rs +++ b/crates/ra_ide_api/src/completion/complete_path.rs | |||
@@ -10,7 +10,7 @@ pub(super) fn complete_path(acc: &mut Completions, ctx: &CompletionContext) { | |||
10 | Some(path) => path.clone(), | 10 | Some(path) => path.clone(), |
11 | _ => return, | 11 | _ => return, |
12 | }; | 12 | }; |
13 | let def = match ctx.resolver.resolve_path(ctx.db, &path).into_per_ns().take_types() { | 13 | let def = match ctx.resolver.resolve_path(ctx.db, &path).take_types() { |
14 | Some(Resolution::Def(def)) => def, | 14 | Some(Resolution::Def(def)) => def, |
15 | _ => return, | 15 | _ => return, |
16 | }; | 16 | }; |