@@ -370794,7 +370794,6 @@ type t =
370794370794 {
370795370795 name : string ;
370796370796 setter : bool;
370797- loc : Location.t;
370798370797 }
370799370798 | Pinit_mod
370800370799 | Pupdate_mod
@@ -370947,7 +370946,6 @@ type t =
370947370946 {
370948370947 name : string ;
370949370948 setter : bool;
370950- loc : Location.t;
370951370949 }
370952370950 | Pinit_mod
370953370951 | Pupdate_mod
@@ -371112,7 +371110,7 @@ let eq_primitive_approx ( lhs : t) (rhs : t) =
371112371110 | Pasrint64 -> rhs = Pasrint64
371113371111 | Pint64comp ( comparison) -> (match rhs with Pint64comp(comparison1) -> Lam_compat.eq_comparison comparison comparison1 | _ -> false)
371114371112 | Pctconst compile_time_constant -> (match rhs with Pctconst compile_time_constant1 -> Lam_compat.eq_compile_time_constant compile_time_constant compile_time_constant1 | _ -> false)
371115- | Pjs_unsafe_downgrade {name; loc=_; setter } -> (match rhs with Pjs_unsafe_downgrade rhs -> name = rhs.name && setter = rhs.setter | _ -> false)
371113+ | Pjs_unsafe_downgrade {name; setter } -> (match rhs with Pjs_unsafe_downgrade rhs -> name = rhs.name && setter = rhs.setter | _ -> false)
371116371114 | Pjs_fn_make i -> (match rhs with Pjs_fn_make i1 -> i = i1 | _ -> false)
371117371115 | Pvoid_run -> rhs = Pvoid_run
371118371116 | Pfull_apply -> rhs = Pfull_apply
@@ -398097,7 +398095,7 @@ let convert (exports : Set_ident.t) (lam : Lambda.lambda) : Lam.t * Lam_module_i
398097398095
398098398096 | "#fn_mk" -> Pjs_fn_make (Ext_pervasives.nat_of_string_exn p.prim_native_name)
398099398097 | "#fn_method" -> Pjs_fn_method
398100- | "#unsafe_downgrade" -> Pjs_unsafe_downgrade {name = Ext_string.empty; loc ; setter = false}
398098+ | "#unsafe_downgrade" -> Pjs_unsafe_downgrade {name = Ext_string.empty; setter = false}
398101398099 | _ -> Location.raise_errorf ~loc
398102398100 "@{<error>Error:@} internal error, using unrecognized primitive %s" s
398103398101 in
@@ -398215,7 +398213,7 @@ let convert (exports : Set_ident.t) (lam : Lambda.lambda) : Lam.t * Lam_module_i
398215398213 | Lsend (kind, _,b,ls, _loc) ->
398216398214 (* Format.fprintf Format.err_formatter "%a@." Printlambda.lambda b ; *)
398217398215 (match convert_aux b with
398218- | Lprim {primitive = Pjs_unsafe_downgrade {loc} ; args}
398216+ | Lprim {primitive = Pjs_unsafe_downgrade _ ; args;loc }
398219398217 ->
398220398218 begin match kind, ls with
398221398219 | Public (Some name), [] ->
@@ -398226,7 +398224,7 @@ let convert (exports : Set_ident.t) (lam : Lambda.lambda) : Lam.t * Lam_module_i
398226398224 (String.sub name 0
398227398225 (String.length name - Literals.setter_suffix_len))
398228398226 else Lam_methname.translate name in
398229- prim ~primitive:(Pjs_unsafe_downgrade {name = property;loc; setter})
398227+ prim ~primitive:(Pjs_unsafe_downgrade {name = property; setter})
398230398228 ~args loc
398231398229 | _ -> assert false
398232398230 end
0 commit comments