@@ -734,23 +734,19 @@ let lam_of_loc kind loc =
734734 const
735735 (Const_block
736736 ( Blk_tuple ,
737- [
738- const_string file None ;
739- const_int lnum;
740- const_int cnum;
741- const_int enum;
742- ] ))
743- | Loc_FILE -> const (const_string file None )
737+ [const_string file; const_int lnum; const_int cnum; const_int enum]
738+ ))
739+ | Loc_FILE -> const (const_string file)
744740 | Loc_MODULE ->
745741 let filename = Filename. basename file in
746742 let name = Env. get_unit_name () in
747743 let module_name = if name = " " then " //" ^ filename ^ " //" else name in
748- const (const_string module_name None )
744+ const (const_string module_name)
749745 | Loc_LOC ->
750746 let loc =
751747 Printf. sprintf " File %S, line %d, characters %d-%d" file lnum cnum enum
752748 in
753- const (const_string loc None )
749+ const (const_string loc)
754750 | Loc_LINE -> const (const_int lnum)
755751
756752(* Eta-expand a primitive *)
@@ -895,8 +891,7 @@ let assert_failed exp =
895891 const
896892 (Const_block
897893 ( Blk_tuple ,
898- [const_string fname None ; const_int line; const_int char ]
899- ));
894+ [const_string fname; const_int line; const_int char ] ));
900895 ]
901896 exp.exp_loc;
902897 ]
@@ -1043,7 +1038,8 @@ and transl_exp0 (e : Typedtree.expression) : Lambda.t =
10431038 function_ ~loc ~attr ~params ~body: lbody
10441039 | Texp_tagged_template {tag; raw_sources; values} ->
10451040 prim ~primitive: (Ptagged_template raw_sources)
1046- ~args: (transl_exp tag :: transl_list values) e.exp_loc
1041+ ~args: (transl_exp tag :: transl_list values)
1042+ e.exp_loc
10471043 | Texp_template {segments; values} ->
10481044 prim ~primitive: (Ptemplate segments) ~args: (transl_list values) e.exp_loc
10491045 | Texp_apply
0 commit comments