Skip to content

Commit

Permalink
fix(exporter): fixes #680
Browse files Browse the repository at this point in the history
  • Loading branch information
W95Psp committed May 21, 2024
1 parent 455fbeb commit 73f9e6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/exporter/src/types/mir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,8 @@ impl<'tcx, S: UnderOwnerState<'tcx> + HasMir<'tcx>> SInto<S, Place>
min_length,
from_end,
} => {
let TyKind::Slice(ty) = current_ty.kind() else {
let (TyKind::Slice(ty) | TyKind::Array(ty, _)) = current_ty.kind()
else {
supposely_unreachable_fatal!(
s, "PlaceConstantIndexNotSlice";
{current_ty, current_kind, elem}
Expand Down

0 comments on commit 73f9e6e

Please sign in to comment.