Bug 22753 – Deprecation message for import module shouldn't produce hifen when no message
Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2022-02-09T20:54:11Z
Last change time
2022-02-10T02:19:57Z
Keywords
pull
Assigned to
No Owner
Creator
Luís Ferreira
Comments
Comment #0 by contact — 2022-02-09T20:54:11Z
The deprecation message displayed by the compiler includes an hifen when the message is empty. The compiler should detect the length of the message and include it only if there is a meaningful message (if there is a message and it is not null and not empty).
Comment #1 by dlang-bot — 2022-02-09T20:56:21Z
@ljmf00 created dlang/dmd pull request #13631 "Fix issue 22753: Deprecation message for import module" fixing this issue:
- Fix issue 22753: Deprecation message for import module
Signed-off-by: Luís Ferreira <[email protected]>
https://github.com/dlang/dmd/pull/13631
Comment #2 by dlang-bot — 2022-02-10T02:19:57Z
dlang/dmd pull request #13631 "Fix issue 22753: Deprecation message for import module shouldn't produce hifen when no message" was merged into master:
- b93176484427a1663518b4b8185d017ae36bc842 by Luís Ferreira:
Fix issue 22753: Deprecation message for import module
Signed-off-by: Luís Ferreira <[email protected]>
https://github.com/dlang/dmd/pull/13631