Files
mercury/tests/invalid/errors.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

50 lines
2.8 KiB
Plaintext

errors.m:012: Error: module must start with a `:- module' declaration.
errors.m:012: Error: module `errors' should start with either an `:- interface'
errors.m:012: or an `:- implementation' declaration.
errors.m:012: The following assumes that the missing declaration is an
errors.m:012: `:- implementation' declaration.
errors.m:012: Warning: the interface of module `errors' does not export
errors.m:012: anything.
errors.m:030: Error: `:- mode' declaration for predicate
errors.m:030: `mode_declaration_without_pred_declaration'/0
errors.m:030: without corresponding `:- pred' declaration.
errors.m:034: Error: `:- mode' declaration for predicate
errors.m:034: `missing_pred_declaration'/0
errors.m:034: without corresponding `:- pred' declaration.
errors.m:040: Error: clause for predicate
errors.m:040: `clause_without_pred_or_mode_declaration'/0
errors.m:040: without corresponding `:- pred' declaration.
errors.m:051: Error: constructor `errors.a/0' for type
errors.m:051: `errors.type_with_multiply_defined_ctors/0' multiply defined.
errors.m:051: Error: constructor `errors.f/1' for type
errors.m:051: `errors.type_with_multiply_defined_ctors/0' multiply defined.
errors.m:053: In the first argument of function symbol `f' of the type
errors.m:053: `du_type_which_references_undefined_type'/0:
errors.m:053: error: undefined type `undefined_type'/0.
errors.m:055: In definition of type
errors.m:055: `eqv_type_which_references_undefined_type'/0:
errors.m:055: error: undefined type `undefined_type'/0.
errors.m:057: Error: circular equivalence type `errors.circular_eqv_type'/0.
errors.m:059: Error: circular equivalence type
errors.m:059: `errors.indirectly_circular_eqv_type_1'/0.
errors.m:060: Error: circular equivalence type
errors.m:060: `errors.indirectly_circular_eqv_type_2'/0.
errors.m:062: Error: free type parameter T in right hand side of type
errors.m:062: definition.
errors.m:063: Error: the type variable T occurs only in the right hand side of
errors.m:063: this type definition.
errors.m:077: In clause for predicate `pred_with_unresolved_polymorphism'/0:
errors.m:077: warning: variable `Arg' occurs only once in this scope.
errors.m:092: In clause for predicate `pred_with_singleton_vars'/1:
errors.m:092: warning: variable `X' occurs only once in this scope.
errors.m:097: Warning: this `:- use_module' declaration for module `int' in the
errors.m:097: implementation section is redundant, given the
errors.m:097: `:- import_module' declaration for the same module in the same
errors.m:097: section.
errors.m:096: The previous declaration is here.
errors.m:101: In definition of type `needs_qualification'/0:
errors.m:101: error: undefined type `state'/0.
errors.m:101: (Only fully module qualified names may refer to the entities
errors.m:101: defined in the module `io'.)
For more information, recompile with `-E'.