-
-
Notifications
You must be signed in to change notification settings - Fork 746
More removal of version(unittest) #6453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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: dub fetch digger
dub run digger -- build "master + phobos#6453" |
| import std.traits; | ||
|
|
||
| version(unittest) | ||
| @property inout(C)[] asArray(C)(inout C* cstr) pure nothrow @nogc @trusted |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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