@@ -192,21 +192,24 @@ module Layout = struct
192
192
let startenv, acc_slots =
193
193
match startenv, acc_slots, is_scanned with
194
194
| Some i , _ , _ ->
195
- assert ( is_scanned) ;
195
+ assert is_scanned;
196
196
assert (i < offset);
197
197
startenv, acc_slots
198
198
| None , (o , Function_slot s ) :: r , _ ->
199
199
( (if is_scanned then Some offset else None ),
200
200
(o, Function_slot { s with last_function_slot = true }) :: r )
201
- | None , [] , _ -> Misc. fatal_errorf " Set of closures with no closure slot"
201
+ | None , [] , _ ->
202
+ Misc. fatal_errorf " Set of closures with no closure slot"
202
203
| None , _ , false -> None , acc_slots
203
204
| None , (_ , Value_slot { is_scanned = false ; _ } ) :: _ , true ->
204
205
Some offset, acc_slots
205
- | None , (_ , ((Value_slot { is_scanned = true ; _ } | Infix_header ) as slot )) :: _ , true ->
206
+ | ( None ,
207
+ (_, ((Value_slot { is_scanned = true ; _ } | Infix_header ) as slot))
208
+ :: _,
209
+ true ) ->
206
210
Misc. fatal_errorf
207
- " Expected a function slot or a non-scanned value slot \
208
- right before the first value slot, but \
209
- found %a"
211
+ " Expected a function slot or a non-scanned value slot right before \
212
+ the first value slot, but found %a"
210
213
print_slot slot
211
214
in
212
215
let acc_slots = (offset, slot) :: acc_slots in
0 commit comments