@@ -207888,7 +207888,7 @@ and tree_of_constructor cd =
207888
207888
(name, args, Some ret)
207889
207889
207890
207890
and tree_of_label l =
207891
- let opt = l.ld_attributes |> List.exists (fun ({txt}, _) -> txt = "optional") in
207891
+ let opt = l.ld_attributes |> List.exists (fun ({txt}, _) -> txt = "ns. optional") in
207892
207892
let typ = match l.ld_type.desc with
207893
207893
| Tconstr (p, [t1], _) when opt && Path.same p Predef.path_option -> t1
207894
207894
| _ -> l.ld_type in
@@ -210718,7 +210718,7 @@ let transl_declaration env sdecl id =
210718
210718
let tcstrs, cstrs = List.split (List.map make_cstr scstrs) in
210719
210719
Ttype_variant tcstrs, Type_variant cstrs
210720
210720
| Ptype_record lbls ->
210721
- let has_optional attrs = Ext_list.exists attrs (fun ({txt },_) -> txt = "optional") in
210721
+ let has_optional attrs = Ext_list.exists attrs (fun ({txt },_) -> txt = "ns. optional") in
210722
210722
let optionalLabels =
210723
210723
Ext_list.filter_map lbls
210724
210724
(fun lbl -> if has_optional lbl.pld_attributes then Some lbl.pld_name.txt else None) in
@@ -214587,7 +214587,7 @@ and type_pat_aux ~constrs ~labels ~no_existentials ~mode ~explode ~env
214587
214587
| _ -> false in
214588
214588
let process_optional_label (ld, pat) =
214589
214589
let exp_optional_attr =
214590
- Ext_list.exists pat.ppat_attributes (fun ({txt },_) -> txt = "optional")
214590
+ Ext_list.exists pat.ppat_attributes (fun ({txt },_) -> txt = "ns. optional")
214591
214591
in
214592
214592
let isFromPamatch = match pat.ppat_desc with
214593
214593
| Ppat_construct ({txt = Lident s}, _) ->
@@ -215313,7 +215313,7 @@ and type_expect_ ?in_function ?(recarg=Rejected) env sexp ty_expected =
215313
215313
| _ -> false in
215314
215314
let process_optional_label (id, ld, e) =
215315
215315
let exp_optional_attr =
215316
- Ext_list.exists e.pexp_attributes (fun ({txt },_) -> txt = "optional")
215316
+ Ext_list.exists e.pexp_attributes (fun ({txt },_) -> txt = "ns. optional")
215317
215317
in
215318
215318
if label_is_optional ld && not exp_optional_attr then
215319
215319
let lid = mknoloc (Longident.(Ldot (Lident "*predef*", "Some"))) in
0 commit comments