Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions std/experimental/logger/nulllogger.d
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ class NullLogger : Logger
///
@safe unittest
{
import std.experimental.logger.nulllogger : LogLevel;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be import std.experimental.logger.core : LogLevel; instead


import std.experimental.logger.core : LogLevel;
auto nl1 = new NullLogger(LogLevel.all);
nl1.info("You will never read this.");
nl1.fatal("You will never read this, either and it will not throw");
Expand Down
5 changes: 3 additions & 2 deletions std/file.d
Original file line number Diff line number Diff line change
Expand Up @@ -2291,7 +2291,7 @@ if (isConvertibleToString!R)

@safe unittest
{
import std.path : mkdir;
import std.file : mkdir;
static assert(__traits(compiles, mkdir(TestAliasedString(null))));
}

Expand Down Expand Up @@ -4073,7 +4073,8 @@ auto dirEntries(string path, SpanMode mode, bool followSymlink = true)
import std.algorithm.searching : startsWith;
import std.array : array;
import std.conv : to;
import std.path : dirEntries, buildPath, absolutePath;
import std.path : buildPath, absolutePath;
import std.file : dirEntries;
import std.process : thisProcessID;
import std.range.primitives : walkLength;

Expand Down
1 change: 0 additions & 1 deletion std/range/package.d
Original file line number Diff line number Diff line change
Expand Up @@ -11650,7 +11650,6 @@ if (isInputRange!R && isIntegral!(ElementType!R))
bw.popFront();
assert(bw[2 * bitsNum - 3] == true);

import core.exception : Error;
import std.exception : assertThrown;

// Check out of bounds error
Expand Down
2 changes: 1 addition & 1 deletion std/socket.d
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ else version(Posix)
}
}

public import core.sys.posix.netinet.in_;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Argh - this is needed because the Windows branch is public import core.sys.windows.winsock2;

import core.sys.posix.arpa.inet;
import core.sys.posix.fcntl;
import core.sys.posix.netdb;
import core.sys.posix.netinet.in_;
import core.sys.posix.netinet.tcp;
import core.sys.posix.sys.select;
import core.sys.posix.sys.socket;
Expand Down