Files
mercury/tests/invalid/errors1.err_exp
Zoltan Somogyi c32098222e Remove unneeded type qualifications in some errors.
compiler/module_qual.qual_errors.m:
    When generating the context for an error message of the form
    "In definition of type/inst/mode/pred/func X:", if the X is guaranteed
    to be defined in the current module, then print its name unqualified.
    Since the module qualifier is guaranteed to be the same as the name
    of the module being compiled, its presence in the error message
    adds no information and is therefore only clutter.

tests/invalid/errors.err_exp:
tests/invalid/errors1.err_exp:
tests/invalid/int_impl_imports.err_exp:
tests/invalid/kind.err_exp:
tests/invalid/test_nested.err_exp:
tests/invalid/type_arity.err_exp:
tests/invalid/undef_type.err_exp:
tests/invalid_make_int/missing_interface_import.int_err_exp:
tests/invalid_make_int/missing_interface_import.int_err_exp2:
    Expect the updated error message.

tests/invalid_make_int/missing_interface_import.m:
    Fix a comment.
2020-08-10 19:47:36 +10:00

36 lines
2.1 KiB
Plaintext

errors1.m:008: Warning: the interface of module `errors1' does not export
errors1.m:008: anything.
errors1.m:012: Error: module `errors1' should start with either an
errors1.m:012: `:- interface' or an `:- implementation' declaration.
errors1.m:012: The following assumes that the missing declaration is an
errors1.m:012: `:- implementation' declaration.
errors1.m:030: Error: `:- mode' declaration for predicate
errors1.m:030: `mode_declaration_without_pred_declaration'/0
errors1.m:030: without corresponding `:- pred' declaration.
errors1.m:034: Error: `:- mode' declaration for predicate
errors1.m:034: `missing_pred_declaration'/0
errors1.m:034: without corresponding `:- pred' declaration.
errors1.m:040: Error: clause for predicate
errors1.m:040: `clause_without_pred_or_mode_declaration'/0
errors1.m:040: without corresponding `:- pred' declaration.
errors1.m:051: Error: constructor `errors1.a/0' for type
errors1.m:051: `errors1.type_with_multiply_defined_ctors/0' multiply defined.
errors1.m:051: Error: constructor `errors1.f/1' for type
errors1.m:051: `errors1.type_with_multiply_defined_ctors/0' multiply defined.
errors1.m:053: In the first argument of function symbol `f' of the type
errors1.m:053: `du_type_which_references_undefined_type'/0:
errors1.m:053: error: undefined type `undefined_type'/0.
errors1.m:055: In definition of type
errors1.m:055: `eqv_type_which_references_undefined_type'/0:
errors1.m:055: error: undefined type `undefined_type'/0.
errors1.m:057: Error: circular equivalence type `errors1.circular_eqv_type'/0.
errors1.m:059: Error: circular equivalence type
errors1.m:059: `errors1.indirectly_circular_eqv_type_1'/0.
errors1.m:060: Error: circular equivalence type
errors1.m:060: `errors1.indirectly_circular_eqv_type_2'/0.
errors1.m:074: In clause for predicate `pred_with_unresolved_polymorphism'/0:
errors1.m:074: warning: variable `Arg' occurs only once in this scope.
errors1.m:089: In clause for predicate `pred_with_singleton_vars'/1:
errors1.m:089: warning: variable `X' occurs only once in this scope.
For more information, recompile with `-E'.