diff options
Diffstat (limited to 'crates/ide/src/lib.rs')
-rw-r--r-- | crates/ide/src/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/ide/src/lib.rs b/crates/ide/src/lib.rs index 6c94c26b5..567b8117e 100644 --- a/crates/ide/src/lib.rs +++ b/crates/ide/src/lib.rs | |||
@@ -369,9 +369,7 @@ impl Analysis { | |||
369 | position: FilePosition, | 369 | position: FilePosition, |
370 | search_scope: Option<SearchScope>, | 370 | search_scope: Option<SearchScope>, |
371 | ) -> Cancelable<Option<ReferenceSearchResult>> { | 371 | ) -> Cancelable<Option<ReferenceSearchResult>> { |
372 | self.with_db(|db| { | 372 | self.with_db(|db| references::find_all_refs(&Semantics::new(db), position, search_scope)) |
373 | references::find_all_refs(&Semantics::new(db), position, search_scope).map(|it| it.info) | ||
374 | }) | ||
375 | } | 373 | } |
376 | 374 | ||
377 | /// Finds all methods and free functions for the file. Does not return tests! | 375 | /// Finds all methods and free functions for the file. Does not return tests! |
@@ -478,6 +476,7 @@ impl Analysis { | |||
478 | position: FilePosition, | 476 | position: FilePosition, |
479 | full_import_path: &str, | 477 | full_import_path: &str, |
480 | imported_name: String, | 478 | imported_name: String, |
479 | import_for_trait_assoc_item: bool, | ||
481 | ) -> Cancelable<Vec<TextEdit>> { | 480 | ) -> Cancelable<Vec<TextEdit>> { |
482 | Ok(self | 481 | Ok(self |
483 | .with_db(|db| { | 482 | .with_db(|db| { |
@@ -487,6 +486,7 @@ impl Analysis { | |||
487 | position, | 486 | position, |
488 | full_import_path, | 487 | full_import_path, |
489 | imported_name, | 488 | imported_name, |
489 | import_for_trait_assoc_item, | ||
490 | ) | 490 | ) |
491 | })? | 491 | })? |
492 | .unwrap_or_default()) | 492 | .unwrap_or_default()) |
@@ -520,7 +520,7 @@ impl Analysis { | |||
520 | &self, | 520 | &self, |
521 | position: FilePosition, | 521 | position: FilePosition, |
522 | new_name: &str, | 522 | new_name: &str, |
523 | ) -> Cancelable<Result<RangeInfo<SourceChange>, RenameError>> { | 523 | ) -> Cancelable<Result<SourceChange, RenameError>> { |
524 | self.with_db(|db| references::rename::rename(db, position, new_name)) | 524 | self.with_db(|db| references::rename::rename(db, position, new_name)) |
525 | } | 525 | } |
526 | 526 | ||