@@ -273,9 +273,7 @@ module WellFormednessArg: TypedtreeIter.IteratorArgument = {
273273 Printf . sprintf("% s .(% s )" , typeName, func),
274274 typeName,
275275 );
276- if (Grain_utils . Warnings . is_active(warning)) {
277- Grain_parsing . Location . prerr_warning(exp_loc, warning);
278- };
276+ Grain_parsing . Location . prerr_warning(exp_loc, warning);
279277 }
280278 // Check: Warn if using Pervasives print on WasmXX types
281279 | TExpApp (
@@ -296,9 +294,7 @@ module WellFormednessArg: TypedtreeIter.IteratorArgument = {
296294 | Some ({arg_expr}) =>
297295 let typeName = resolve_unsafe_type(arg_expr);
298296 let warning = Grain_utils . Warnings . PrintUnsafe (typeName);
299- if (Grain_utils . Warnings . is_active(warning)) {
300- Grain_parsing . Location . prerr_warning(exp_loc, warning);
301- };
297+ Grain_parsing . Location . prerr_warning(exp_loc, warning);
302298 | _ => ()
303299 }
304300 // Check: Warn if using Pervasives toString on WasmXX types
@@ -323,9 +319,7 @@ module WellFormednessArg: TypedtreeIter.IteratorArgument = {
323319 | Some ({arg_expr}) =>
324320 let typeName = resolve_unsafe_type(arg_expr);
325321 let warning = Grain_utils . Warnings . ToStringUnsafe (typeName);
326- if (Grain_utils . Warnings . is_active(warning)) {
327- Grain_parsing . Location . prerr_warning(exp_loc, warning);
328- };
322+ Grain_parsing . Location . prerr_warning(exp_loc, warning);
329323 | _ => ()
330324 }
331325 // Check: Warn if using XXXX.fromNumber(<literal>)
@@ -381,9 +375,7 @@ module WellFormednessArg: TypedtreeIter.IteratorArgument = {
381375 };
382376 let warning =
383377 Grain_utils . Warnings . FromNumberLiteral (mod_type, modname, n_str);
384- if (Grain_utils . Warnings . is_active(warning)) {
385- Grain_parsing . Location . prerr_warning(exp_loc, warning);
386- };
378+ Grain_parsing . Location . prerr_warning(exp_loc, warning);
387379 | _ => ()
388380 };
389381 // Check: Forbid usage of WasmXX types outside of disableGC context
0 commit comments