Files
mercury/tests/invalid/undeclared_mode.err_exp
Zoltan Somogyi 6284861177 More tweaks to diagnostics, mostly for imports.
compiler/item_util.m:
    Make the diagnostics for duplicate include_module, import_module and
    use_module declarations more readable, color them appropriately,
    and (in some cases) include more info in them.

compiler/modes.m:
    Improve the wording of some diagnostics.

compiler/add_pred.m:
compiler/lambda.m:
compiler/polymorphism_lambda.m:
compiler/prog_foreign_enum.m:
    Delete imports of ancestor modules, since you now get a warning for that,
    which --halt-at-warn turns into an error.

library/mercury_term_parser.m:
    Lower case the start of an error description that will end up
    in the *middle* of a sentence in the complete error message.

    Make a previously semidet predicate det, to avoid the possibility
    of missing anything.

tests/invalid/typeclass_mode_3.err_exp:
tests/invalid/typeclass_mode_4.err_exp:
tests/invalid/undeclared_mode.err_exp:
tests/invalid_nodepend/bigtest.err_exp:
tests/invalid_nodepend/bug115.err_exp:
tests/invalid_nodepend/constrained_poly_insts.err_exp:
tests/invalid_nodepend/errors_3.err_exp:
tests/warnings/warn_self_import.err_exp:
    Expect updated diagnostics.
2024-06-03 21:14:41 +10:00

278 B

undeclared_mode.m:034: Error: predicate `sort_of_factorial'/2 has no mode
undeclared_mode.m:034: declaration.
undeclared_mode.m:034: Inferred :- mode sort_of_factorial(di, uo).
For more information, recompile with `-E'.