Bug 17191 – style: require all assert's to be supplied message

Status
NEW
Severity
enhancement
Priority
P4
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2017-02-17T00:47:38Z
Last change time
2024-12-01T16:29:28Z
Assigned to
No Owner
Creator
Seb
Moved to GitHub: phobos#10234 →

Comments

Comment #0 by greeenify — 2017-02-17T00:47:38Z
`assert(0)`'s yield to a segfault without any user-friendly message. Hence the idea is to require all assert's in Phobos (and druntime) to have a descriptive error message in case the user ever runs into it. At the moment there are 302 assert(0)'s without a message at Phobos. Ideally once all assert's have been supplied with a message, a style check should be enabled to prevent regressions.
Comment #1 by robert.schadek — 2024-12-01T16:29:28Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/10234 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB