diff options
Diffstat (limited to 'crates/ra_ide_api')
-rw-r--r-- | crates/ra_ide_api/src/completion/completion_item.rs | 5 | ||||
-rw-r--r-- | crates/ra_ide_api/src/marks.rs | 4 |
2 files changed, 2 insertions, 7 deletions
diff --git a/crates/ra_ide_api/src/completion/completion_item.rs b/crates/ra_ide_api/src/completion/completion_item.rs index 3ba6c33ee..b2b047766 100644 --- a/crates/ra_ide_api/src/completion/completion_item.rs +++ b/crates/ra_ide_api/src/completion/completion_item.rs | |||
@@ -209,10 +209,7 @@ impl Builder { | |||
209 | ctx: &CompletionContext, | 209 | ctx: &CompletionContext, |
210 | resolution: &hir::Resolution, | 210 | resolution: &hir::Resolution, |
211 | ) -> Builder { | 211 | ) -> Builder { |
212 | let def = resolution | 212 | let def = resolution.def.take_types().or(resolution.def.take_values()); |
213 | .def_id | ||
214 | .take_types() | ||
215 | .or(resolution.def_id.take_values()); | ||
216 | let def = match def { | 213 | let def = match def { |
217 | None => return self, | 214 | None => return self, |
218 | Some(it) => it, | 215 | Some(it) => it, |
diff --git a/crates/ra_ide_api/src/marks.rs b/crates/ra_ide_api/src/marks.rs index b4a726ef0..dc5b2702a 100644 --- a/crates/ra_ide_api/src/marks.rs +++ b/crates/ra_ide_api/src/marks.rs | |||
@@ -1,3 +1 @@ | |||
1 | use test_utils::mark; | test_utils::marks!(inserts_parens_for_function_calls); | |
2 | |||
3 | mark!(inserts_parens_for_function_calls); | ||