diff options
Diffstat (limited to 'crates/hir_ty/src/method_resolution.rs')
-rw-r--r-- | crates/hir_ty/src/method_resolution.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir_ty/src/method_resolution.rs b/crates/hir_ty/src/method_resolution.rs index 84d9a1e18..bf7d5eded 100644 --- a/crates/hir_ty/src/method_resolution.rs +++ b/crates/hir_ty/src/method_resolution.rs | |||
@@ -228,12 +228,12 @@ impl Ty { | |||
228 | &self, | 228 | &self, |
229 | db: &dyn HirDatabase, | 229 | db: &dyn HirDatabase, |
230 | cur_crate: CrateId, | 230 | cur_crate: CrateId, |
231 | ) -> Option<ArrayVec<[CrateId; 2]>> { | 231 | ) -> Option<ArrayVec<CrateId, 2>> { |
232 | // Types like slice can have inherent impls in several crates, (core and alloc). | 232 | // Types like slice can have inherent impls in several crates, (core and alloc). |
233 | // The corresponding impls are marked with lang items, so we can use them to find the required crates. | 233 | // The corresponding impls are marked with lang items, so we can use them to find the required crates. |
234 | macro_rules! lang_item_crate { | 234 | macro_rules! lang_item_crate { |
235 | ($($name:expr),+ $(,)?) => {{ | 235 | ($($name:expr),+ $(,)?) => {{ |
236 | let mut v = ArrayVec::<[LangItemTarget; 2]>::new(); | 236 | let mut v = ArrayVec::<LangItemTarget, 2>::new(); |
237 | $( | 237 | $( |
238 | v.extend(db.lang_item(cur_crate, $name.into())); | 238 | v.extend(db.lang_item(cur_crate, $name.into())); |
239 | )+ | 239 | )+ |