diff options
Diffstat (limited to 'crates/ra_hir_expand/src/lib.rs')
-rw-r--r-- | crates/ra_hir_expand/src/lib.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crates/ra_hir_expand/src/lib.rs b/crates/ra_hir_expand/src/lib.rs index f440c073b..dc4d7f000 100644 --- a/crates/ra_hir_expand/src/lib.rs +++ b/crates/ra_hir_expand/src/lib.rs | |||
@@ -424,3 +424,8 @@ impl<N: AstNode> InFile<N> { | |||
424 | self.with_value(self.value.syntax()) | 424 | self.with_value(self.value.syntax()) |
425 | } | 425 | } |
426 | } | 426 | } |
427 | |||
428 | // FIXME: this is obviously wrong, there shouldn't be any guesing here | ||
429 | fn guess_crate(db: &dyn db::AstDatabase, file_id: FileId) -> Option<CrateId> { | ||
430 | db.relevant_crates(file_id).iter().next().copied() | ||
431 | } | ||