Skip to content

Commit 3b97b64

Browse files
lnicolaivan770
authored andcommitted
Allow spurious warning from rust-lang/rust#80501
1 parent 3e1de1e commit 3b97b64

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/hir_ty/src/infer/expr.rs

+2
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,8 @@ impl<'a> InferenceContext<'a> {
648648
}
649649
Expr::Array(array) => {
650650
let elem_ty = match &expected.ty {
651+
// FIXME: remove when https://github.com/rust-lang/rust/issues/80501 is fixed
652+
#[allow(unreachable_patterns)]
651653
ty_app!(TypeCtor::Array, st) | ty_app!(TypeCtor::Slice, st) => {
652654
st.as_single().clone()
653655
}

0 commit comments

Comments
 (0)