Zoltan Somogyi
4dd8669a87
Don't include irrelevant arg modes in diagnostics.
...
compiler/hlds_error_util.m:
When creating format_pieces identifying one procedure of a predicate
or function, use just the id of the predicate or function itself
if it has no other procedures. This avoids cluttering diagnostics
with irrelevant details.
Replace two separate functions that used to construct such ids with one.
The difference was that one got the actual arg modes from a pred_info,
while the other allowed the caller to supply any modes it wanted, but
all callers (except one) of the second variant got the arg modes
the exact same way the first variant did. The one exception got them
from the *declared* arg modes field of the pred_info, which was a bug,
because would have generated unusable output if the predicate or function
had no declared modes, and got all its modes by inference.
Put all the functions involved in all of the above into a logical order.
compiler/det_analysis.m:
compiler/det_report.m:
compiler/simplify_goal_call.m:
compiler/stratify.m:
Conform to the changes in hlds_error_util.m.
In some places, improve diagnostics in other ways as well.
tests/general/Mercury.options:
tests/general/Mmakefile:
tests/warnings/Mmakefile:
tests/warnings/petdr1.{m,err_exp}:
Move the petdr1 test case from general to warnings. This case
never generated any output; its intended use was to check for
the absence of a compiler abort in the generation of some warnings.
In its new home, it tests that *and* the texts of the warnings.
tests/invalid/bug150.err_exp:
tests/invalid/bug150_partial_color.err_exp:
tests/invalid/bug496.err_exp:
tests/invalid/det_atomic_goal_msgs.err_exp:
tests/invalid/det_errors.err_exp:
tests/invalid/det_errors_and_io.err_exp:
tests/invalid/det_errors_deep.err_exp:
tests/invalid/erroneous_throw_promise.err_exp:
tests/invalid/hawkins_mm_fail_reset.err_exp:
tests/invalid/ho_unique_error.err_exp:
tests/invalid/io_in_ite_cond.err_exp:
tests/invalid/loopcheck.err_exp:
tests/invalid/magicbox.err_exp:
tests/invalid/mostly_uniq_1.err_exp:
tests/invalid/mostly_uniq_2.err_exp:
tests/invalid/multisoln_func.err_exp:
tests/invalid/not_a_switch.err_exp:
tests/invalid/one_member.err_exp:
tests/invalid/pragma_c_code_no_det.err_exp:
tests/invalid/ref_to_implicit_comma.err_exp:
tests/invalid/ref_to_implicit_pred.err_exp:
tests/invalid/require_det_in_lambda.err_exp:
tests/invalid/require_scopes.err_exp:
tests/invalid/try_detism.err_exp:
tests/invalid/user_field_access_decl_override_1.err_exp:
tests/invalid_nodepend/invalid_main.err_exp:
tests/invalid_nodepend/occurs.err_exp:
tests/warnings/det_infer_warning.err_exp:
tests/warnings/non_stratification.err_exp:
tests/warnings/obsolete_proc_pragma.err_exp:
Expect the updated diagnostics.
2025-01-10 16:45:10 +11:00
..
2024-05-05 09:49:35 +10:00
2024-05-11 17:03:53 +10:00
2024-05-05 09:49:35 +10:00
2024-05-05 09:49:35 +10:00
2024-05-23 15:47:43 +10:00
2024-05-11 02:21:45 +10:00
2024-05-23 15:47:43 +10:00
2024-12-14 02:21:17 +11:00
2024-05-21 18:46:21 +10:00
2024-10-27 21:53:38 +11:00
2024-05-21 18:46:21 +10:00
2024-05-21 18:46:21 +10:00
2023-10-24 14:04:23 +11:00
2024-05-21 18:46:21 +10:00
2023-10-20 14:16:57 +11:00
2024-11-01 13:56:55 +11:00
2024-05-21 23:40:31 +10:00
2024-05-23 23:54:56 +10:00
2024-05-24 20:22:52 +10:00
2024-12-14 02:21:17 +11:00
2024-07-26 22:29:39 +02:00
2024-05-24 20:22:52 +10:00
2024-05-10 06:41:54 +10:00
2024-05-20 18:31:15 +10:00
2023-10-19 16:05:55 +11:00
2023-10-19 16:05:55 +11:00
2024-05-20 18:31:15 +10:00
2024-05-20 18:31:15 +10:00
2023-10-24 16:27:11 +11:00
2024-05-31 07:58:32 +10:00
2024-05-23 20:24:14 +10:00
2024-05-24 20:22:52 +10:00
2024-05-30 20:42:34 +10:00
2024-05-30 20:42:34 +10:00
2024-05-31 04:50:58 +10:00
2024-06-24 21:45:45 +10:00
2024-05-20 20:59:09 +10:00
2024-06-07 08:42:26 +10:00
2024-05-28 17:58:29 +10:00
2024-05-16 05:56:57 +10:00
2024-02-07 16:55:00 +11:00
2024-05-24 20:22:52 +10:00
2024-06-07 08:42:26 +10:00
2024-11-01 13:56:55 +11:00
2024-05-20 18:31:15 +10:00
2024-05-27 19:28:45 +10:00
2024-05-20 18:31:15 +10:00
2024-05-07 10:11:11 +10:00
2024-06-12 00:31:49 +10:00
2024-06-11 14:25:22 +10:00
2025-01-10 16:45:10 +11:00
2024-06-11 14:25:22 +10:00
2025-01-10 16:45:10 +11:00
2024-05-28 17:58:29 +10:00
2024-05-07 10:11:11 +10:00
2023-12-08 05:04:48 +11:00
2024-06-07 08:42:26 +10:00
2024-05-21 23:40:31 +10:00
2024-05-24 11:32:54 +10:00
2024-05-28 17:58:29 +10:00
2024-05-21 18:46:21 +10:00
2024-05-07 10:11:11 +10:00
2024-05-22 22:59:55 +10:00
2024-06-02 14:54:34 +10:00
2024-06-07 08:42:26 +10:00
2025-01-10 16:45:10 +11:00
2024-05-20 18:31:15 +10:00
2024-05-21 18:46:21 +10:00
2024-05-11 06:32:09 +10:00
2024-05-11 02:21:45 +10:00
2024-05-11 06:32:09 +10:00
2024-05-11 02:21:45 +10:00
2024-05-11 06:32:09 +10:00
2024-05-11 02:21:45 +10:00
2024-05-11 06:32:09 +10:00
2024-05-11 02:21:45 +10:00
2024-05-11 06:32:09 +10:00
2024-05-11 02:21:45 +10:00
2024-05-11 06:32:09 +10:00
2024-05-11 02:21:45 +10:00
2024-05-11 06:32:09 +10:00
2024-05-11 02:21:45 +10:00
2024-05-11 06:32:09 +10:00
2024-05-11 02:21:45 +10:00
2024-05-11 06:32:09 +10:00
2024-05-11 02:21:45 +10:00
2024-05-16 17:09:43 +10:00
2024-05-11 02:21:45 +10:00
2024-05-16 17:09:43 +10:00
2024-05-11 02:21:45 +10:00
2024-05-16 17:09:43 +10:00
2024-05-11 02:21:45 +10:00
2024-05-16 17:09:43 +10:00
2024-05-11 02:21:45 +10:00
2024-07-26 22:29:39 +02:00
2024-07-02 16:29:12 +10:00
2024-07-03 11:36:10 +10:00
2024-06-07 08:42:26 +10:00
2024-06-07 08:42:26 +10:00
2024-07-02 16:29:12 +10:00
2024-05-21 18:46:21 +10:00
2024-07-03 11:36:10 +10:00
2024-05-30 17:20:37 +10:00
2024-08-06 00:32:48 +02:00
2024-08-06 00:32:48 +02:00
2024-08-06 00:32:48 +02:00
2024-08-06 00:32:48 +02:00
2024-07-03 11:36:10 +10:00
2024-06-30 21:36:03 +10:00
2024-06-30 21:36:03 +10:00
2024-07-05 16:28:58 +10:00
2024-07-05 16:28:58 +10:00
2025-01-05 00:25:00 +11:00
2024-07-11 16:37:19 +10:00
2024-07-11 16:37:19 +10:00
2024-07-03 11:36:10 +10:00
2024-07-03 11:36:10 +10:00
2024-07-03 11:36:10 +10:00
2024-06-27 17:05:00 +10:00
2024-07-02 16:29:12 +10:00
2024-05-05 09:49:35 +10:00
2024-05-23 15:47:43 +10:00
2024-06-07 08:42:26 +10:00
2024-11-01 13:56:55 +11:00
2024-05-21 23:54:55 +10:00
2024-05-21 23:48:00 +10:00
2024-05-21 23:54:55 +10:00
2024-05-21 23:48:00 +10:00
2024-05-21 23:54:55 +10:00
2024-05-23 15:47:43 +10:00
2024-05-20 18:31:15 +10:00
2024-05-23 17:53:15 +10:00
2024-05-13 07:08:55 +10:00
2024-05-11 02:21:45 +10:00
2024-05-13 07:08:55 +10:00
2023-12-08 05:04:48 +11:00
2024-05-13 07:08:55 +10:00
2024-06-07 08:42:26 +10:00
2023-11-03 23:51:34 +11:00
2024-05-21 18:46:21 +10:00
2024-05-11 02:21:45 +10:00
2024-06-07 08:42:26 +10:00
2025-01-10 16:45:10 +11:00
2025-01-10 16:45:10 +11:00
2024-04-13 13:43:28 +10:00
2024-11-01 13:56:55 +11:00
2025-01-10 16:45:10 +11:00
2024-05-28 17:58:29 +10:00
2025-01-10 16:45:10 +11:00
2024-06-02 03:44:36 +10:00
2024-06-02 03:44:36 +10:00
2024-05-31 07:58:32 +10:00
2023-10-25 19:21:06 +11:00
2025-01-10 16:45:10 +11:00
2023-10-25 19:21:06 +11:00
2024-05-24 10:08:11 +10:00
2024-05-20 18:31:15 +10:00
2023-10-25 19:21:06 +11:00
2023-10-25 19:21:06 +11:00
2023-10-25 19:21:06 +11:00
2024-05-22 22:59:55 +10:00
2024-05-20 18:31:15 +10:00
2023-10-26 08:47:39 +11:00
2024-05-20 18:31:15 +10:00
2023-10-26 08:47:39 +11:00
2023-10-26 08:47:39 +11:00
2024-05-05 09:49:35 +10:00
2024-06-13 08:45:49 +10:00
2024-05-30 20:42:34 +10:00
2024-05-30 20:42:34 +10:00
2024-05-11 12:23:31 +10:00
2024-11-01 13:56:55 +11:00
2024-05-22 22:59:55 +10:00
2024-05-22 22:59:55 +10:00
2024-05-21 18:46:21 +10:00
2024-05-22 22:59:55 +10:00
2023-10-30 15:54:22 +11:00
2023-10-30 15:54:22 +11:00
2024-05-05 09:49:35 +10:00
2023-10-26 08:47:39 +11:00
2023-10-26 08:47:39 +11:00
2023-10-26 08:47:39 +11:00
2024-05-20 18:31:15 +10:00
2024-05-20 18:31:15 +10:00
2024-05-20 18:31:15 +10:00
2023-10-26 08:47:39 +11:00
2024-05-11 17:03:53 +10:00
2024-05-20 18:31:15 +10:00
2024-05-11 17:03:53 +10:00
2023-10-30 15:54:22 +11:00
2023-10-30 15:54:22 +11:00
2023-10-30 15:54:22 +11:00
2024-05-28 17:58:29 +10:00
2024-05-28 17:58:29 +10:00
2024-05-28 17:58:29 +10:00
2023-10-26 08:47:39 +11:00
2024-06-07 08:42:26 +10:00
2024-06-07 08:42:26 +10:00
2024-05-11 02:21:45 +10:00
2024-11-01 13:56:55 +11:00
2024-06-07 08:42:26 +10:00
2024-05-23 15:47:43 +10:00
2024-05-23 00:22:59 +10:00
2024-05-23 00:22:59 +10:00
2024-05-24 10:08:11 +10:00
2024-05-20 18:31:15 +10:00
2023-10-26 08:47:39 +11:00
2023-10-26 08:47:39 +11:00
2023-10-26 08:47:39 +11:00
2025-01-10 16:45:10 +11:00
2024-11-01 13:56:55 +11:00
2024-05-13 04:01:24 +10:00
2024-11-01 13:56:55 +11:00
2024-10-27 21:53:38 +11:00
2024-05-21 18:46:21 +10:00
2024-10-27 21:53:38 +11:00
2024-10-27 21:53:38 +11:00
2024-05-23 23:54:56 +10:00
2024-11-01 13:56:55 +11:00
2025-01-10 16:45:10 +11:00
2024-05-07 10:11:11 +10:00
2024-06-13 08:45:49 +10:00
2024-05-20 18:31:15 +10:00
2024-05-13 07:08:55 +10:00
2024-05-23 15:47:43 +10:00
2024-05-12 15:17:31 +10:00
2024-05-12 15:17:31 +10:00
2024-05-11 08:51:11 +10:00
2024-05-07 10:11:11 +10:00
2024-05-23 15:47:43 +10:00
2024-05-23 15:47:43 +10:00
2023-10-26 15:18:41 +11:00
2023-10-26 15:18:41 +11:00
2024-05-23 23:54:56 +10:00
2024-05-20 18:31:15 +10:00
2024-05-30 17:26:12 +10:00
2024-05-23 15:47:43 +10:00
2024-06-24 21:45:45 +10:00
2024-05-14 14:54:03 +10:00
2024-06-24 21:45:45 +10:00
2024-05-21 18:46:21 +10:00
2024-05-20 18:31:15 +10:00
2025-01-10 16:45:10 +11:00
2024-05-30 17:26:12 +10:00
2025-01-10 16:45:10 +11:00
2025-01-10 16:45:10 +11:00
2024-05-20 18:31:15 +10:00
2024-05-15 08:33:35 +10:00
2024-12-14 02:21:17 +11:00
2024-07-29 18:01:17 +02:00
2024-05-07 10:11:11 +10:00
2024-06-07 08:42:26 +10:00
2024-05-20 18:31:15 +10:00
2024-05-13 07:08:55 +10:00
2024-05-20 18:31:15 +10:00
2024-05-05 09:49:35 +10:00
2024-12-09 04:48:58 +11:00
2024-05-30 22:19:22 +10:00
2024-11-01 13:56:55 +11:00
2024-10-31 18:16:14 +11:00
2024-05-07 10:11:11 +10:00
2024-10-01 13:34:26 +02:00
2024-06-07 08:42:26 +10:00
2025-01-10 16:45:10 +11:00
2024-05-30 20:42:34 +10:00
2025-01-10 16:45:10 +11:00
2024-05-30 20:42:34 +10:00
2024-06-13 08:45:49 +10:00
2024-05-30 20:42:34 +10:00
2024-05-30 20:42:34 +10:00
2024-05-30 20:42:34 +10:00
2024-06-13 08:45:49 +10:00
2024-05-30 20:42:34 +10:00
2024-05-23 17:53:15 +10:00
2024-06-07 08:42:26 +10:00
2024-05-30 22:19:22 +10:00
2024-05-20 18:31:15 +10:00
2025-01-05 16:33:00 +11:00
2024-05-20 18:31:15 +10:00
2024-05-23 01:03:03 +10:00
2024-05-27 16:35:48 +10:00
2025-01-10 16:45:10 +11:00
2024-11-01 13:56:55 +11:00
2024-05-23 23:54:56 +10:00
2025-01-10 16:45:10 +11:00
2024-05-31 04:50:58 +10:00
2024-06-13 08:45:49 +10:00
2024-05-31 07:58:32 +10:00
2025-01-10 16:45:10 +11:00
2024-08-09 21:43:03 +02:00
2024-08-09 21:43:03 +02:00
2024-05-05 09:49:35 +10:00
2024-06-07 08:42:26 +10:00
2024-05-21 18:46:21 +10:00
2024-05-31 07:58:32 +10:00
2023-10-26 15:18:41 +11:00
2023-10-26 15:18:41 +11:00
2023-10-26 15:18:41 +11:00
2025-01-10 16:45:10 +11:00
2024-05-20 18:31:15 +10:00
2024-05-20 18:31:15 +10:00
2023-10-27 15:52:11 +11:00
2024-05-31 07:58:32 +10:00
2024-05-23 17:53:15 +10:00
2024-05-11 02:21:45 +10:00
2024-05-23 17:53:15 +10:00
2024-05-30 20:42:34 +10:00
2024-05-30 20:42:34 +10:00
2024-05-30 20:42:34 +10:00
2024-05-30 20:42:34 +10:00
2024-06-07 08:42:26 +10:00
2024-06-07 08:42:26 +10:00
2024-05-23 15:47:43 +10:00
2024-05-31 20:09:44 +10:00
2025-01-10 16:45:10 +11:00
2025-01-10 16:45:10 +11:00
2024-05-31 20:09:44 +10:00
2024-05-31 20:09:44 +10:00
2024-05-07 16:25:03 +10:00
2025-01-10 16:45:10 +11:00
2025-01-10 16:45:10 +11:00
2024-05-22 16:09:45 +10:00
2024-05-31 20:09:44 +10:00
2024-05-31 20:09:44 +10:00
2024-06-24 21:45:45 +10:00
2024-05-31 20:09:44 +10:00
2024-05-31 20:09:44 +10:00
2024-06-24 21:45:45 +10:00
2024-05-31 20:09:44 +10:00
2024-05-31 20:09:44 +10:00
2024-06-24 21:45:45 +10:00
2024-05-20 18:31:15 +10:00
2024-10-27 21:53:38 +11:00
2024-05-11 02:21:45 +10:00
2024-05-27 16:35:48 +10:00
2024-05-11 02:21:45 +10:00
2024-05-27 16:35:48 +10:00
2024-05-11 02:21:45 +10:00
2024-05-27 16:35:48 +10:00
2024-05-11 02:21:45 +10:00
2024-05-21 18:46:21 +10:00
2024-05-11 02:21:45 +10:00
2024-06-07 08:42:26 +10:00
2024-06-30 08:20:51 +10:00
2024-05-31 07:58:32 +10:00
2024-05-31 07:58:32 +10:00
2024-05-11 12:23:31 +10:00
2024-05-11 12:23:31 +10:00
2024-07-08 17:38:38 +10:00
2024-07-08 17:38:38 +10:00
2024-07-23 09:06:18 +10:00
2024-07-23 09:06:18 +10:00
2024-06-01 23:08:34 +10:00
2024-05-11 02:21:45 +10:00
2024-06-01 23:08:34 +10:00
2024-05-11 02:21:45 +10:00
2024-05-11 02:21:45 +10:00
2024-05-11 17:03:53 +10:00
2024-05-11 12:23:31 +10:00
2024-05-11 12:23:31 +10:00
2024-05-12 10:51:51 +10:00
2024-05-22 16:09:45 +10:00
2024-06-02 01:37:39 +10:00
2024-05-30 20:42:34 +10:00
2024-05-30 20:42:34 +10:00
2024-05-30 20:42:34 +10:00
2024-05-30 20:42:34 +10:00
2024-05-12 15:17:31 +10:00
2024-06-07 08:42:26 +10:00
2024-05-12 18:00:46 +10:00
2024-05-12 18:00:46 +10:00
2023-10-27 15:52:11 +11:00
2024-06-07 08:42:26 +10:00
2024-05-12 18:00:46 +10:00
2024-05-12 18:00:46 +10:00
2023-10-27 15:52:11 +11:00
2024-05-20 18:31:15 +10:00
2024-06-02 01:37:39 +10:00
2023-10-27 15:52:11 +11:00
2024-05-15 08:33:35 +10:00
2024-06-02 03:22:21 +10:00
2024-06-02 03:22:21 +10:00
2024-06-02 03:22:21 +10:00
2024-05-23 00:22:59 +10:00
2024-05-30 20:42:34 +10:00
2024-05-30 20:42:34 +10:00
2024-05-15 08:33:35 +10:00
2025-01-10 16:45:10 +11:00
2024-04-13 13:43:28 +10:00
2023-10-27 15:52:11 +11:00
2024-05-12 10:51:51 +10:00
2024-11-01 13:56:55 +11:00
2024-05-05 09:49:35 +10:00
2024-05-05 09:49:35 +10:00
2024-05-23 00:22:59 +10:00
2024-05-20 18:31:15 +10:00
2024-05-16 17:09:43 +10:00
2024-05-05 09:49:35 +10:00
2024-06-02 01:37:39 +10:00
2024-04-13 16:11:03 +10:00
2024-05-04 00:27:34 +10:00
2024-05-01 20:12:42 +10:00
2024-05-12 10:51:51 +10:00
2024-05-10 06:41:54 +10:00
2024-05-23 15:47:43 +10:00
2024-05-23 15:47:43 +10:00
2024-06-07 08:42:26 +10:00
2024-05-11 02:21:45 +10:00
2024-05-11 02:21:45 +10:00
2024-05-10 06:41:54 +10:00
2024-05-13 11:14:05 +10:00
2024-05-11 02:21:45 +10:00
2024-05-11 02:21:45 +10:00
2024-05-23 15:47:43 +10:00
2024-05-18 19:28:25 +10:00
2024-05-11 02:21:45 +10:00
2024-05-20 18:31:15 +10:00
2024-06-03 21:14:41 +10:00
2023-12-08 05:04:48 +11:00
2024-06-03 21:14:41 +10:00
2024-05-23 15:47:43 +10:00
2024-05-23 15:47:43 +10:00
2024-05-23 15:47:43 +10:00
2024-05-31 20:09:44 +10:00
2024-05-28 17:58:29 +10:00
2024-05-23 15:47:43 +10:00
2024-05-23 15:47:43 +10:00
2024-05-23 15:47:43 +10:00
2024-05-31 20:09:44 +10:00
2024-05-30 20:42:34 +10:00
2024-05-30 20:42:34 +10:00
2024-06-03 21:14:41 +10:00
2024-05-08 13:30:15 +10:00
2024-05-31 07:58:32 +10:00
2024-05-31 07:58:32 +10:00
2024-12-09 04:24:59 +11:00
2024-12-09 04:24:59 +11:00
2024-06-02 03:22:21 +10:00
2023-10-27 15:52:11 +11:00
2024-05-21 18:46:21 +10:00
2024-05-21 18:46:21 +10:00
2024-05-12 15:17:31 +10:00
2024-05-21 18:46:21 +10:00
2024-05-31 20:09:44 +10:00
2024-05-31 20:09:44 +10:00
2024-05-28 17:58:29 +10:00
2024-05-31 20:09:44 +10:00
2024-05-11 12:23:31 +10:00
2024-06-02 14:54:34 +10:00
2025-01-10 16:45:10 +11:00
2024-05-11 02:21:45 +10:00
2024-05-23 23:54:56 +10:00
2024-05-11 02:21:45 +10:00
2025-01-05 00:25:00 +11:00
2025-01-05 00:25:00 +11:00
2024-06-24 12:43:16 +10:00