mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 14:40:30 +03:00
![]() If `-debug` is passed to the compiler, `version(assert)` is true. TimSort has a `version(assert)` that checks some invariants, and uses std.format.format for better error messages. Unfortunately, since it is templated code, this results in Phobos template instantiations of `format` in the user's code when `-debug` is used. Given that default dub builds use `-debug`, this is a very common problem. Instead of removing the invariant checks, this changes it so they only happen when testing Phobos itself. |
||
---|---|---|
.. | ||
comparison.d | ||
internal.d | ||
iteration.d | ||
mutation.d | ||
package.d | ||
searching.d | ||
setops.d | ||
sorting.d |