We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f4f487 commit 1654767Copy full SHA for 1654767
1 file changed
compiler/ml/translmod.ml
@@ -449,9 +449,9 @@ and transl_structure loc fields cc rootpath final_env = function
449
| Tstr_primitive _ | Tstr_type _ | Tstr_modtype _ | Tstr_open _ ->
450
transl_structure loc fields cc rootpath final_env rem
451
| 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)
+ Builtin_attributes.warning_scope ~ppwarning:false
+ ~report_attribute_errors:false [x] (fun () ->
+ transl_structure loc fields cc rootpath final_env rem))
455
456
(* Update forward declaration in Translcore *)
457
let _ = Translcore.transl_module := transl_module
0 commit comments