@@ -53,8 +53,8 @@ let is_loop_attribute =
53
53
let is_opaque_attribute =
54
54
[ [" opaque" ; " ocaml.opaque" ], true ]
55
55
56
- let is_unboxed_attribute =
57
- [ [" unboxed " ; " ocaml.unboxed " ], true ]
56
+ let is_unboxable_attribute =
57
+ [ [" unboxable " ; " ocaml.unboxable " ], true ]
58
58
59
59
let find_attribute ?mark_used p attributes =
60
60
let inline_attribute =
@@ -591,13 +591,13 @@ let add_opaque_attribute expr loc attributes =
591
591
let add_unbox_return_attribute expr loc attributes =
592
592
match expr with
593
593
| Lfunction funct ->
594
- let attr = find_attribute is_unboxed_attribute attributes in
594
+ let attr = find_attribute is_unboxable_attribute attributes in
595
595
begin match attr with
596
596
| None -> expr
597
597
| Some _ ->
598
598
if funct.attr.unbox_return then
599
599
Location. prerr_warning loc
600
- (Warnings. Duplicated_attribute " unboxed " );
600
+ (Warnings. Duplicated_attribute " unboxable " );
601
601
let attr = { funct.attr with unbox_return = true } in
602
602
lfunction_with_attr ~attr funct
603
603
end
@@ -676,8 +676,8 @@ let add_function_attributes lam loc attr =
676
676
lam
677
677
678
678
let transl_param_attributes pat =
679
- let attrs = pat.pat_attributes in
680
- let unbox_param =
681
- Option. is_some (find_attribute is_unboxed_attribute attrs)
682
- in
683
- { unbox_param }
679
+ let attrs = pat.pat_attributes in
680
+ let unbox_param =
681
+ Option. is_some (find_attribute is_unboxable_attribute attrs)
682
+ in
683
+ { unbox_param }
0 commit comments