File tree Expand file tree Collapse file tree 7 files changed +15
-12
lines changed Expand file tree Collapse file tree 7 files changed +15
-12
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 0f220ecae921f961f0c40395218de86cc2b33849
2
+ refs/heads/master: 1cb4a57b7b2fda8db6a225207c9b9c090ba565d1
Original file line number Diff line number Diff line change @@ -1011,7 +1011,7 @@ let expand_pexp_custom
1011
1011
[| spanner (Ast. STMT_init_str (dst_lval, r() )) |]
1012
1012
1013
1013
| _ ->
1014
- raise (err (" unsupported syntax extension: " ^ nstr) ps)
1014
+ raise (err (" unknown syntax extension: " ^ nstr) ps)
1015
1015
;;
1016
1016
1017
1017
(*
Original file line number Diff line number Diff line change @@ -397,7 +397,8 @@ let trans_crate
397
397
match ty with
398
398
Ast. TY_port _
399
399
| Ast. TY_chan _
400
- | Ast. TY_task -> bug () " unimplemented ty in Lltrans.free_ty"
400
+ | Ast. TY_task ->
401
+ Common. unimpl None " ty %a in Lltrans.free_ty" Ast. sprintf_ty ty
401
402
| _ -> trans_free llbuilder lltask ptr
402
403
in
403
404
@@ -428,7 +429,8 @@ let trans_crate
428
429
| Ast. TY_iso _
429
430
| Ast. TY_fn _
430
431
| Ast. TY_obj _ ->
431
- bug () " unimplemented ty in Lltrans.iter_ty_parts_full"
432
+ Common. unimpl None
433
+ " ty %a in Lltrans.iter_ty_parts_full" Ast. sprintf_ty ty
432
434
433
435
| _ -> ()
434
436
@@ -1006,8 +1008,8 @@ let trans_crate
1006
1008
| Ast. TY_mach (TY_u32 ) | Ast. TY_mach (TY_i8 )
1007
1009
| Ast. TY_mach (TY_i16 ) | Ast. TY_mach (TY_i32) ->
1008
1010
trans_log_int a
1009
- | _ -> Semant. bugi sem_cx head.id
1010
- " unimplemented logging type"
1011
+ | _ -> Common. unimpl ( Some head.id)
1012
+ " logging type"
1011
1013
end ;
1012
1014
trans_tail ()
1013
1015
Original file line number Diff line number Diff line change @@ -2082,7 +2082,7 @@ let dwarf_visitor
2082
2082
| Ast. TY_mutable t -> mutable_type t
2083
2083
| Ast. TY_box t -> box_type t
2084
2084
| _ ->
2085
- bug () " unimplemented dwarf encoding for type %a"
2085
+ unimpl None " dwarf encoding for type %a"
2086
2086
Ast. sprintf_ty ty
2087
2087
in
2088
2088
Original file line number Diff line number Diff line change @@ -2476,7 +2476,7 @@ let trans_visitor
2476
2476
end
2477
2477
else
2478
2478
begin
2479
- bug () " Unsupported form of seq iter: src != dst."
2479
+ unimpl None " seq iter with src != dst."
2480
2480
end
2481
2481
2482
2482
@@ -4390,7 +4390,7 @@ let trans_visitor
4390
4390
| Ast. TY_mach (TY_i8 ) | Ast. TY_mach (TY_i16 )
4391
4391
| Ast. TY_mach (TY_i32) ->
4392
4392
trans_log_int a
4393
- | _ -> bugi cx id " unimplemented logging type"
4393
+ | _ -> unimpl ( Some id) " logging type"
4394
4394
4395
4395
4396
4396
and trans_stmt_full (stmt :Ast.stmt ) : unit =
@@ -5043,7 +5043,8 @@ let trans_visitor
5043
5043
Ast. MOD_ITEM_fn f -> trans_required_fn i.id f.Ast. fn_body.id
5044
5044
| Ast. MOD_ITEM_mod _ -> ()
5045
5045
| Ast. MOD_ITEM_type _ -> ()
5046
- | _ -> bugi cx i.id " unsupported type of require: %s" (path_name() )
5046
+ | _ -> unimpl (Some i.id)
5047
+ " unsupported type of require: %s" (path_name() )
5047
5048
in
5048
5049
5049
5050
let visit_obj_drop_pre obj b =
Original file line number Diff line number Diff line change @@ -470,7 +470,7 @@ let check_stmt (cx:Semant.ctxt) : (fn_ctx -> Ast.stmt -> unit) =
470
470
sprintf_ltype lty
471
471
| Some _ , (LTYPE_poly _ ) ->
472
472
(* FIXME: auto-instantiate *)
473
- Common. err
473
+ Common. unimpl
474
474
None
475
475
" sorry, automatic polymorphic instantiation isn't supported yet; \
476
476
please supply type parameters explicitly"
Original file line number Diff line number Diff line change @@ -523,7 +523,7 @@ and walk_stmt
523
523
| Ast. STMT_note _
524
524
| Ast. STMT_alt_type _
525
525
| Ast. STMT_alt_port _ ->
526
- bug ( ) " unimplemented statement type in Walk.walk_stmt"
526
+ unimpl ( Some s.id ) " statement type in Walk.walk_stmt"
527
527
in
528
528
walk_bracketed
529
529
v.visit_stmt_pre
You can’t perform that action at this time.
0 commit comments