Skip to content

Commit 607a4e6

Browse files
committed
---
yaml --- r: 350 b: refs/heads/master c: 1cb4a57 h: refs/heads/master v: v3
1 parent dc68cd4 commit 607a4e6

File tree

7 files changed

+15
-12
lines changed

7 files changed

+15
-12
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 0f220ecae921f961f0c40395218de86cc2b33849
2+
refs/heads/master: 1cb4a57b7b2fda8db6a225207c9b9c090ba565d1

trunk/src/boot/fe/pexp.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1011,7 +1011,7 @@ let expand_pexp_custom
10111011
[| spanner (Ast.STMT_init_str (dst_lval, r())) |]
10121012

10131013
| _ ->
1014-
raise (err ("unsupported syntax extension: " ^ nstr) ps)
1014+
raise (err ("unknown syntax extension: " ^ nstr) ps)
10151015
;;
10161016

10171017
(*

trunk/src/boot/llvm/lltrans.ml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,8 @@ let trans_crate
397397
match ty with
398398
Ast.TY_port _
399399
| 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
401402
| _ -> trans_free llbuilder lltask ptr
402403
in
403404

@@ -428,7 +429,8 @@ let trans_crate
428429
| Ast.TY_iso _
429430
| Ast.TY_fn _
430431
| 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
432434

433435
| _ -> ()
434436

@@ -1006,8 +1008,8 @@ let trans_crate
10061008
| Ast.TY_mach (TY_u32) | Ast.TY_mach (TY_i8)
10071009
| Ast.TY_mach (TY_i16) | Ast.TY_mach (TY_i32) ->
10081010
trans_log_int a
1009-
| _ -> Semant.bugi sem_cx head.id
1010-
"unimplemented logging type"
1011+
| _ -> Common.unimpl (Some head.id)
1012+
"logging type"
10111013
end;
10121014
trans_tail ()
10131015

trunk/src/boot/me/dwarf.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2082,7 +2082,7 @@ let dwarf_visitor
20822082
| Ast.TY_mutable t -> mutable_type t
20832083
| Ast.TY_box t -> box_type t
20842084
| _ ->
2085-
bug () "unimplemented dwarf encoding for type %a"
2085+
unimpl None "dwarf encoding for type %a"
20862086
Ast.sprintf_ty ty
20872087
in
20882088

trunk/src/boot/me/trans.ml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2476,7 +2476,7 @@ let trans_visitor
24762476
end
24772477
else
24782478
begin
2479-
bug () "Unsupported form of seq iter: src != dst."
2479+
unimpl None "seq iter with src != dst."
24802480
end
24812481

24822482

@@ -4390,7 +4390,7 @@ let trans_visitor
43904390
| Ast.TY_mach (TY_i8) | Ast.TY_mach (TY_i16)
43914391
| Ast.TY_mach (TY_i32) ->
43924392
trans_log_int a
4393-
| _ -> bugi cx id "unimplemented logging type"
4393+
| _ -> unimpl (Some id) "logging type"
43944394

43954395

43964396
and trans_stmt_full (stmt:Ast.stmt) : unit =
@@ -5043,7 +5043,8 @@ let trans_visitor
50435043
Ast.MOD_ITEM_fn f -> trans_required_fn i.id f.Ast.fn_body.id
50445044
| Ast.MOD_ITEM_mod _ -> ()
50455045
| 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())
50475048
in
50485049

50495050
let visit_obj_drop_pre obj b =

trunk/src/boot/me/type.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ let check_stmt (cx:Semant.ctxt) : (fn_ctx -> Ast.stmt -> unit) =
470470
sprintf_ltype lty
471471
| Some _, (LTYPE_poly _) ->
472472
(* FIXME: auto-instantiate *)
473-
Common.err
473+
Common.unimpl
474474
None
475475
"sorry, automatic polymorphic instantiation isn't supported yet; \
476476
please supply type parameters explicitly"

trunk/src/boot/me/walk.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ and walk_stmt
523523
| Ast.STMT_note _
524524
| Ast.STMT_alt_type _
525525
| Ast.STMT_alt_port _ ->
526-
bug () "unimplemented statement type in Walk.walk_stmt"
526+
unimpl (Some s.id) "statement type in Walk.walk_stmt"
527527
in
528528
walk_bracketed
529529
v.visit_stmt_pre

0 commit comments

Comments
 (0)