mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-18 15:26:31 +00:00
Estimated hours taken: 1.5 Branches: main Do not display the `For more information try recompiling with `-E'' prompt unless we really mean it, i.e. there is actually more information available. XXX This change is incomplete for the mode_errors module because that module requires more substantial changes to make this work - I'll do that as a separate diff. compiler/globals.m Add a new global (and access predicates) that keeps track of whether we have any verbose error information that could be displayed if we recompiled with `-E'. compiler/mercury_compile.m Check the new global flag before prompting the user to recompile with `-E'. compiler/mode_errors.m Add an XXX comment about needing to respect the extra error info flag properly. compiler/accumulator.m compiler/add_clause.m compiler/add_pred.m compiler/add_type.m compiler/assertion.m compiler/check_typeclass.m compiler/det_report.m compiler/magic_util.m compiler/make_hlds_error.m compiler/modes.m compiler/module_qual.m compiler/modules.m compiler/post_typecheck.m compiler/purity.m compiler/stratify.m compiler/typecheck_errors.m Set the new global flag when we come across an error for which we have a verbose error message. tests/recompilation/*: tests/invalid/*: Update expected error files.
28 lines
1.7 KiB
Plaintext
28 lines
1.7 KiB
Plaintext
bind_var_errors.m:033: In clause for `bind_var_in_negation':
|
|
bind_var_errors.m:033: scope error: attempt to bind a variable inside a
|
|
bind_var_errors.m:033: negation.
|
|
bind_var_errors.m:033: Variable `X' has instantiatedness `free',
|
|
bind_var_errors.m:033: expected instantiatedness was `unique(42)'.
|
|
bind_var_errors.m:039: In clause for `bind_var_in_ite_cond(in)':
|
|
bind_var_errors.m:039: scope error: attempt to bind a non-local variable
|
|
bind_var_errors.m:039: inside the condition of an if-then-else.
|
|
bind_var_errors.m:039: Variable `Y' has instantiatedness `free',
|
|
bind_var_errors.m:039: expected instantiatedness was `unique(42)'.
|
|
bind_var_errors.m:048: In clause for `bind_var_in_lambda':
|
|
bind_var_errors.m:048: in argument 1 (i.e. the predicate term) of
|
|
bind_var_errors.m:048: higher-order predicate call:
|
|
bind_var_errors.m:048: mode error: variable `Y' has instantiatedness `free',
|
|
bind_var_errors.m:048: expected instantiatedness for non-local variables of
|
|
bind_var_errors.m:048: lambda goals is `ground'.
|
|
bind_var_errors.m:053: In clause for `share_var_in_lambda(di)':
|
|
bind_var_errors.m:053: in argument 1 of call to predicate
|
|
bind_var_errors.m:053: `bind_var_errors.destroy/1':
|
|
bind_var_errors.m:053: mode error: variable `X' has instantiatedness
|
|
bind_var_errors.m:053: `ground',
|
|
bind_var_errors.m:053: expected instantiatedness was `unique'.
|
|
bind_var_errors.m:060: In clause for `clobber_var_in_lambda(di)':
|
|
bind_var_errors.m:060: in argument 1 of call to predicate
|
|
bind_var_errors.m:060: `bind_var_errors.destroy/1':
|
|
bind_var_errors.m:060: unique-mode error: the called procedure would clobber
|
|
bind_var_errors.m:060: its argument, but variable `X' is still live.
|