]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_typeck/coherence/inherent_impls.rs
Rollup merge of #75485 - RalfJung:pin, r=nagisa
[rust.git] / src / librustc_typeck / coherence / inherent_impls.rs
index 93ee87f6c572ee5bd164247dcb11fefcabfe8789..cd7429f166f26aa6fc141461aa70ea9d1282a9fa 100644 (file)
@@ -112,6 +112,16 @@ fn visit_item(&mut self, item: &hir::Item<'_>) {
                     item.span,
                 );
             }
+            ty::Array(_, _) => {
+                self.check_primitive_impl(
+                    def_id,
+                    lang_items.array_impl(),
+                    None,
+                    "array",
+                    "[T; N]",
+                    item.span,
+                );
+            }
             ty::RawPtr(ty::TypeAndMut { ty: inner, mutbl: hir::Mutability::Not })
                 if matches!(inner.kind, ty::Slice(_)) =>
             {