Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(engine/f*): convert an unimplemented to an assertion failure #948

Merged
merged 1 commit into from
Oct 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions engine/backends/fstar/fstar_backend.ml
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,9 @@ struct
| POr { subpats } when shallow ->
F.pat @@ F.AST.PatOr (List.map ~f:ppat subpats)
| POr _ ->
Error.unimplemented ~issue_id:463 p.span
~details:"The F* backend doesn't support nested disjuntive patterns"
Error.assertion_failure p.span
"Nested disjuntive patterns should have been eliminated by phase \
`HoistDisjunctions` (see PR #830)."
| PArray { args } -> F.pat @@ F.AST.PatList (List.map ~f:ppat args)
| PConstruct { name = `TupleCons 0; args = [] } ->
F.pat @@ F.AST.PatConst F.Const.Const_unit
Expand Down
Loading