mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 17:33:38 +00:00
compiler/purity.m:
Use color to emphasize the subject variables and terms of purity errors.
compiler/det_report.m:
Use color to emphasize the subject variables and terms of determinism
errors.
Make the determinism test on main/2 require the determinism to be
declared explicitly.
Generate a diagnostic if main/2 to be not exported.
Don't color connectives such as "or" between two colored words.
Improve the wording of some error messages.
compiler/hlds_error_util.m:
Replace the generic descriptions we used to generate for the
predicates/functions implementing methods in typeclasses and in instances
with descriptions that specify the method name.
tests/invalid/bug257.err_exp:
tests/invalid/det_errors.err_exp:
tests/invalid/foreign_purity_mismatch.err_exp:
tests/invalid/ho_unique_error.err_exp:
tests/invalid/impure_method_impl.err_exp:
tests/invalid/io_in_ite_cond.err_exp:
tests/invalid/method_impl.err_exp:
tests/invalid/mostly_uniq1.err_exp:
tests/invalid/mostly_uniq2.err_exp:
tests/invalid/multimode_missing_impure.err_exp:
tests/invalid/multisoln_func.err_exp:
tests/invalid/no_method.err_exp:
tests/invalid/require_complete_nested_switch.err_exp:
tests/invalid/require_scopes.err_exp:
tests/invalid/require_switch_arms_detism.err_exp:
tests/invalid/switch_arm_multi_not_det.err_exp:
tests/invalid/test_promise_equivalent_clauses.err_exp:
tests/invalid/typeclass_dup_method_mode.err_exp:
tests/invalid/typeclass_test_8.err_exp:
tests/invalid_nodepend/invalid_main.err_exp:
tests/invalid_nodepend/no_exports.err_exp:
tests/invalid_purity/impure_func_t7.err_exp:
tests/invalid_purity/pragma_c_and_mercury.err_exp:
tests/invalid_purity/purity.err_exp:
tests/recompilation/typeclass_method_pragma_r.err_exp.2:
tests/warnings/purity_warnings.err_exp:
Expect the updated diagnostics.
496 B
496 B
require_complete_nested_switch.m:094: Warning: this disjunct will never have
require_complete_nested_switch.m:094: any solutions.
require_complete_nested_switch.m:096: Inside the case "k" of the switch on Str:
require_complete_nested_switch.m:096: error: the goal inside the
require_complete_nested_switch.m:096: require_complete_switch [Str] scope is
require_complete_nested_switch.m:096: not a switch on `Str'.
require_complete_nested_switch.m:094: any solutions.
require_complete_nested_switch.m:096: Inside the case "k" of the switch on Str:
require_complete_nested_switch.m:096: error: the goal inside the
require_complete_nested_switch.m:096: require_complete_switch [Str] scope is
require_complete_nested_switch.m:096: not a switch on `Str'.