diff options
Diffstat (limited to 'crates/ra_hir/src/lang_item.rs')
-rw-r--r-- | crates/ra_hir/src/lang_item.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir/src/lang_item.rs b/crates/ra_hir/src/lang_item.rs index e3b71cec3..bcce314d8 100644 --- a/crates/ra_hir/src/lang_item.rs +++ b/crates/ra_hir/src/lang_item.rs | |||
@@ -42,7 +42,7 @@ impl LangItems { | |||
42 | } | 42 | } |
43 | 43 | ||
44 | /// Salsa query. This will look for lang items in a specific crate. | 44 | /// Salsa query. This will look for lang items in a specific crate. |
45 | pub(crate) fn lang_items_query( | 45 | pub(crate) fn crate_lang_items_query( |
46 | db: &(impl DefDatabase + AstDatabase), | 46 | db: &(impl DefDatabase + AstDatabase), |
47 | krate: Crate, | 47 | krate: Crate, |
48 | ) -> Arc<LangItems> { | 48 | ) -> Arc<LangItems> { |
@@ -75,7 +75,7 @@ impl LangItems { | |||
75 | start_crate: Crate, | 75 | start_crate: Crate, |
76 | item: SmolStr, | 76 | item: SmolStr, |
77 | ) -> Option<LangItemTarget> { | 77 | ) -> Option<LangItemTarget> { |
78 | let lang_items = db.lang_items(start_crate); | 78 | let lang_items = db.crate_lang_items(start_crate); |
79 | let start_crate_target = lang_items.items.get(&item); | 79 | let start_crate_target = lang_items.items.get(&item); |
80 | if let Some(target) = start_crate_target { | 80 | if let Some(target) = start_crate_target { |
81 | Some(*target) | 81 | Some(*target) |