Skip to content

Commit 1654767

Browse files
committed
fix
1 parent 8f4f487 commit 1654767

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

compiler/ml/translmod.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -449,9 +449,9 @@ and transl_structure loc fields cc rootpath final_env = function
449449
| Tstr_primitive _ | Tstr_type _ | Tstr_modtype _ | Tstr_open _ ->
450450
transl_structure loc fields cc rootpath final_env rem
451451
| Tstr_attribute x ->
452-
Builtin_attributes.warning_attribute ~ppwarning:false
453-
~report_attribute_errors:false x;
454-
transl_structure loc fields cc rootpath final_env rem)
452+
Builtin_attributes.warning_scope ~ppwarning:false
453+
~report_attribute_errors:false [x] (fun () ->
454+
transl_structure loc fields cc rootpath final_env rem))
455455

456456
(* Update forward declaration in Translcore *)
457457
let _ = Translcore.transl_module := transl_module

0 commit comments

Comments
 (0)