@@ -110,7 +110,7 @@ let trans_crate
110110 : Llvm.llvalue option =
111111 match Session. get_span sess id with
112112 None -> None
113- | Some {lo =(_ , line , col )} ->
113+ | Some {lo =(_ , line , col ); _ } ->
114114 Some (di_location line col scope)
115115 in
116116
@@ -368,9 +368,9 @@ let trans_crate
368368 in
369369 let base_llty = trans_ty ty in
370370 match slot.Ast. slot_mode with
371- | Ast. MODE_alias _ ->
371+ | Ast. MODE_alias ->
372372 Llvm. pointer_type base_llty
373- | Ast. MODE_local _ -> base_llty
373+ | Ast. MODE_local -> base_llty
374374 in
375375
376376 let get_element_ptr
@@ -585,7 +585,7 @@ let trans_crate
585585 (name :Ast.ident )
586586 mod_item
587587 : unit =
588- let { node = { Ast. decl_item = (item:Ast.mod_item' ) }; id = id } =
588+ let { node = { Ast. decl_item = (item:Ast.mod_item' ); _ }; id = id } =
589589 mod_item in
590590 let full_name = Semant. item_str sem_cx id in
591591 let (filename, line_num) =
@@ -621,7 +621,7 @@ let trans_crate
621621 let trans_fn
622622 ({
623623 Ast. fn_input_slots = (header_slots :Ast.header_slots );
624- Ast. fn_body = (body :Ast.block )
624+ Ast. fn_body = (body :Ast.block ); _
625625 } :Ast. fn )
626626 (fn_id :node_id )
627627 : unit =
@@ -654,7 +654,7 @@ let trans_crate
654654 let build_arg idx llargval =
655655 if idx > = n_implicit_args
656656 then
657- let ({ id = id }, ident) = header_slots.(idx - 2 ) in
657+ let ({ id = id; _ }, ident) = header_slots.(idx - 2 ) in
658658 Llvm. set_value_name ident llargval;
659659 let llarg =
660660 let llty = Llvm. type_of llargval in
@@ -754,7 +754,7 @@ let trans_crate
754754 let rec trans_lval (lval :Ast.lval ) : (Llvm.llvalue * Ast.ty) =
755755 iflog (fun _ -> log sem_cx " trans_lval: %a" Ast. sprintf_lval lval);
756756 match lval with
757- Ast. LVAL_base { id = base_id } ->
757+ Ast. LVAL_base { id = base_id ; _ } ->
758758 set_debug_loc base_id;
759759 let defn_id = lval_base_defn_id sem_cx lval in
760760 begin
@@ -813,7 +813,7 @@ let trans_crate
813813 let trans_atom (atom :Ast.atom ) : Llvm.llvalue =
814814 iflog (fun _ -> log sem_cx " trans_atom: %a" Ast. sprintf_atom atom);
815815 match atom with
816- Ast. ATOM_literal { node = lit } -> trans_literal lit
816+ Ast. ATOM_literal { node = lit ; _ } -> trans_literal lit
817817 | Ast. ATOM_lval lval ->
818818 Llvm. build_load (fst (trans_lval lval)) (anon_llid " tmp" )
819819 llbuilder
@@ -1081,7 +1081,7 @@ let trans_crate
10811081 (name :Ast.ident )
10821082 mod_item
10831083 : unit =
1084- let { node = { Ast. decl_item = (item:Ast.mod_item' ) }; id = id } =
1084+ let { node = { Ast. decl_item = (item:Ast.mod_item' ); _ }; id = id } =
10851085 mod_item in
10861086 match item with
10871087 Ast. MOD_ITEM_type _ ->
0 commit comments