mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-19 03:13:40 +00:00
compiler/module_qual.m:
When printing error messages about modules imported in the interface
but not used in the interface, we used to use the context of the module's
`:- module' declaration, not the context of the bad `:- import_module'
declarations themselves. Fix that, by generating a separate error message
for each unnecessarily interface-imported module, each with its own
context.
tests/invalid/bug113.err_exp:
tests/warning/unused_import.exp:
tests/warning/unused_interface_import.exp:
Update the context (and the wording) of the expected error message.
5 lines
277 B
Plaintext
5 lines
277 B
Plaintext
unused_interface_import.m:009: In module `unused_interface_import':
|
|
unused_interface_import.m:009: warning: module `unused_interface_import2' is
|
|
unused_interface_import.m:009: imported in the interface, but it is not used
|
|
unused_interface_import.m:009: in the interface.
|