We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5521787 commit 894df10Copy full SHA for 894df10
1 file changed
manual/manual/cmds/comp.etex
@@ -423,6 +423,11 @@ let dy { y; _ } = y (* explicit field elision: do not trigger warning 9 *)
423
this attribute set: "Invalid_argument", "Failure", "Sys_error" will
424
all raise this warning if you match for a specific string argument.
425
426
+ Additionally, built-in exceptions with a structured argument that
427
+ includes a string also have the attribute set: "Assert_failure" and
428
+ "Match_failure" will raise the warning for a pattern that uses a
429
+ literal string to match the first element of their tuple argument.
430
+
431
If your code raises this warning, you should {\em not} change the
432
way you test for the specific string to avoid the warning (for
433
example using a string equality inside the right-hand-side instead
0 commit comments