Skip to content

Commit

Permalink
Merge pull request #552 from hacspec/phase-drop-refs-question-mark
Browse files Browse the repository at this point in the history
feat(engine/phases): drop-references: accept `?`
  • Loading branch information
W95Psp authored Mar 6, 2024
2 parents c24320a + 7ebb83b commit ee963ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions engine/lib/phases/phase_drop_references.ml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ open! Prelude
module%inlined_contents Make
(F : Features.T
with type raw_pointer = Features.Off.raw_pointer
and type mutable_reference = Features.Off.mutable_reference
and type question_mark = Features.Off.question_mark) =
and type mutable_reference = Features.Off.mutable_reference) =
struct
open Ast
module FA = F
Expand Down Expand Up @@ -69,7 +68,7 @@ struct

and dexpr' (span : span) (e : A.expr') : B.expr' =
match (UA.unbox_underef_expr { e; span; typ = UA.never_typ }).e with
| [%inline_arms If + Literal + Array + Block] -> auto
| [%inline_arms If + Literal + Array + Block + QuestionMark] -> auto
| Construct { constructor; is_record; is_struct; fields; base } ->
Construct
{
Expand Down
1 change: 0 additions & 1 deletion engine/lib/phases/phase_drop_references.mli
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ open! Prelude
module Make
(F : Features.T
with type raw_pointer = Features.Off.raw_pointer
and type question_mark = Features.Off.question_mark
and type mutable_reference = Features.Off.mutable_reference) : sig
include module type of struct
module FA = F
Expand Down

0 comments on commit ee963ae

Please sign in to comment.