Skip to content

Commit

Permalink
tidbit
Browse files Browse the repository at this point in the history
  • Loading branch information
msprotz committed Nov 29, 2023
1 parent c4ae783 commit aa31ad6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Simplify.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1066,7 +1066,7 @@ and hoist_expr loc pos e =
(* We now allow IfThenElse nodes directly under IfThenElse, on the basis
* that the outer IfThenElse is properly positioned under a let-binding.
* let_if_to_assign will know how to deal with this. *)
if pos = UnderStmtLet || pos = UnderConditional then
if pos = UnderStmtLet || pos = UnderConditional || Options.rust () then
lhs1, mk (EIfThenElse (e1, e2, e3))
else
let b, body, cont = mk_named_binding "ite" t (EIfThenElse (e1, e2, e3)) in
Expand Down

0 comments on commit aa31ad6

Please sign in to comment.