More removal of version(unittest)#6453
Conversation
|
Thanks for your pull request, @schveiguy! Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: |
| import std.traits; | ||
|
|
||
| version(unittest) | ||
| @property inout(C)[] asArray(C)(inout C* cstr) pure nothrow @nogc @trusted |
There was a problem hiding this comment.
Putting a trusted function like this in the global namespace is not a good idea.
| version(unittest) | ||
| { | ||
| static assert(is(uint32_t == uint)); | ||
| static assert(is(uint16_t == ushort)); |
There was a problem hiding this comment.
Note, uint32_t and uint16_t are nowhere else in this file. I have no idea what these were for so I removed them. If they are critical to have, they should go somewhere else.
1737df8 to
bf529ae
Compare
| version(CRuntime_Bionic) {} else | ||
| @safe unittest | ||
| { | ||
| // import std.stdio : writefln; |
There was a problem hiding this comment.
writefln is used in commented out lines below. I put in this comment because before it was imported by the version(unittest) block.
bf529ae to
7a2d776
Compare
|
ping @wilzbach what is this circleci error in typecons? I can't figure out if it's something I did or not, but I didn't touch typecons. |
|
Random error, ignore it for the time being. |
Ugh. Now doc builder too. |
7a2d776 to
d4a35f0
Compare
|
Doc failure seems repeatable, but I don't know what it means. @wilzbach or @CyberShadow ? |
|
Er, I'm not sure @wilzbach worked on the spec testing stuff, maybe he knows? Might be exposing a latent compiler bug through some edge case. |
|
Looks really weird: I can try more testing tomorrow, but for now I have no idea why this is failing. |
|
@wilzbach thanks for looking into it. |
|
Regarding the DAutoTest failure -> dlang/dlang.org#2345 |
See #6450