diff --git a/crates/hir_ty/src/infer/expr.rs b/crates/hir_ty/src/infer/expr.rs index 70a3f3075c08..f2fc69b2f45e 100644 --- a/crates/hir_ty/src/infer/expr.rs +++ b/crates/hir_ty/src/infer/expr.rs @@ -648,6 +648,8 @@ impl<'a> InferenceContext<'a> { } Expr::Array(array) => { let elem_ty = match &expected.ty { + // FIXME: remove when https://github.com/rust-lang/rust/issues/80501 is fixed + #[allow(unreachable_patterns)] ty_app!(TypeCtor::Array, st) | ty_app!(TypeCtor::Slice, st) => { st.as_single().clone() }