File tree Expand file tree Collapse file tree 2 files changed +29
-2
lines changed Expand file tree Collapse file tree 2 files changed +29
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: ce79b0e492f1583debbce3c8155da3536c684d9a
2
+ refs/heads/master: 4bc173fd3c66bb5b072b6452df8cb383b789c464
Original file line number Diff line number Diff line change @@ -1237,7 +1237,13 @@ and fmt_stmt_body (ff:Format.formatter) (s:stmt) : unit =
1237
1237
1238
1238
| STMT_alt_port _ -> fmt ff " ?stmt_alt_port?"
1239
1239
| STMT_note _ -> fmt ff " ?stmt_note?"
1240
- | STMT_slice _ -> fmt ff " ?stmt_slice?"
1240
+ | STMT_slice (dst , src , slice ) ->
1241
+ fmt_lval ff dst;
1242
+ fmt ff " = " ;
1243
+ fmt_lval ff src;
1244
+ fmt ff " ." ;
1245
+ fmt_slice ff slice;
1246
+ fmt ff " ;" ;
1241
1247
end
1242
1248
1243
1249
and fmt_arm
@@ -1275,6 +1281,27 @@ and fmt_pat (ff:Format.formatter) (pat:pat) : unit =
1275
1281
| PAT_wild ->
1276
1282
fmt ff " _"
1277
1283
1284
+ and fmt_slice (ff :Format.formatter ) (slice :slice ) : unit =
1285
+ let fmt_slice_start = (match slice.slice_start with
1286
+ None -> (fun ff -> fmt ff " 0" )
1287
+ | Some atom -> (fun ff -> fmt_atom ff atom)) in
1288
+ fmt ff " (@[" ;
1289
+ fmt_slice_start ff;
1290
+ begin
1291
+ match slice.slice_len with
1292
+ None -> fmt ff " ,"
1293
+ | Some slice_len ->
1294
+ fmt ff " ,@ @[" ;
1295
+ fmt_slice_start ff;
1296
+ fmt ff " +@ " ;
1297
+ fmt_atom ff slice_len;
1298
+ fmt ff " @]" ;
1299
+ end ;
1300
+ fmt ff " @])" ;
1301
+
1302
+
1303
+
1304
+
1278
1305
and fmt_decl_param (ff :Format.formatter ) (param :ty_param ) : unit =
1279
1306
let (ident, (i, e)) = param in
1280
1307
fmt_effect ff e;
You can’t perform that action at this time.
0 commit comments