Bug 13582 – Deprecated modules imported from other deprecated modules shouldn't be warned about

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-10-07T04:13:18Z
Last change time
2019-08-24T22:47:54Z
Keywords
pull
Assigned to
No Owner
Creator
Dicebot
See also
https://issues.dlang.org/show_bug.cgi?id=19865

Comments

Comment #0 by public — 2014-10-07T04:13:18Z
Recently added "deprecated module" feature pints deprecation message every time import statement is encountered. This results in excessive warning spam and makes test coverage of deprecated modules problebatic. Simple solution to make output more useful is to only print deprecation message for the first deprecated import in the import chain. This is especially helpful when module groups or packages get deprecated at once.
Comment #1 by public — 2014-10-07T04:29:44Z
Comment #2 by dlang-bot — 2019-08-22T14:53:34Z
@FeepingCreature updated dlang/dmd pull request #10336 "Fix issue 13582: Don't print deprecation when importing a deprecated module from another deprecated module." fixing this issue: - Fix issue 13582: don't print deprecation when importing a deprecated module from another deprecated module. https://github.com/dlang/dmd/pull/10336
Comment #3 by dlang-bot — 2019-08-24T22:47:54Z
dlang/dmd pull request #10336 "Fix issue 13582: Don't print deprecation when importing a deprecated module from another deprecated module." was merged into master: - e1dd21784653a106139d867cec606c389dcbd738 by Mathis Beer: Fix issue 13582: don't print deprecation when importing a deprecated module from another deprecated module. https://github.com/dlang/dmd/pull/10336