Skip to content

Commit

Permalink
Merge pull request #681 from hacspec/fix-680
Browse files Browse the repository at this point in the history
fix(exporter): fixes #680
  • Loading branch information
W95Psp committed May 22, 2024
2 parents acae1cf + e548e6f commit a483aff
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 a483aff

Please sign in to comment.