diff --git a/.travis.yml b/.travis.yml index 4dd2783..45f0901 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,17 +11,17 @@ d: # catching most DMD version related build failures early # latest 4 versions plus the oldest supported version should be present - dmd-2.087.1 - - dmd-2.076.1 + - dmd-2.078.3 + - ldc-1.17.0 - ldc-1.16.0 - ldc-1.15.0 - ldc-1.14.0 - - ldc-1.13.0 - - ldc-1.12.0 - - ldc-1.6.0 - - dmd-beta + - ldc-1.9.0 - dmd-2.086.1 - dmd-2.085.1 - dmd-2.084.1 + - dmd-2.079.0 + - dmd-beta env: - CONFIG=select diff --git a/README.md b/README.md index e955ba1..7ab232a 100644 --- a/README.md +++ b/README.md @@ -31,12 +31,13 @@ The following compilers are tested and supported: - DMD 2.086.1 - DMD 2.085.1 - DMD 2.084.1 -- DMD 2.076.1 +- DMD 2.079.0 +- LDC 1.17.0 - LDC 1.16.0 - LDC 1.15.0 - LDC 1.14.0 - LDC 1.13.0 -- LDC 1.6.0 +- LDC 1.9.0 Driver development status diff --git a/appveyor.yml b/appveyor.yml index 7bebf39..0ef724f 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -30,7 +30,11 @@ environment: arch: x64 config: winapi - DC: dmd - DVersion: 2.076.1 + DVersion: 2.079.0 + arch: x64 + config: winapi + - DC: ldc + DVersion: 1.17.0 arch: x64 config: winapi - DC: ldc @@ -46,11 +50,7 @@ environment: arch: x86 config: winapi - DC: ldc - DVersion: 1.13.0 - arch: x64 - config: winapi - - DC: ldc - DVersion: 1.6.0 + DVersion: 1.9.0 arch: x64 config: winapi @@ -152,4 +152,4 @@ test_script: - echo %DC% - echo %PATH% - '%DC% --version' - - dub test --arch=%Darch% --compiler=%DC% --config=%CONFIG% \ No newline at end of file + - dub test --arch=%Darch% --compiler=%DC% --config=%CONFIG% diff --git a/source/eventcore/drivers/posix/sockets.d b/source/eventcore/drivers/posix/sockets.d index ca909da..2fa5a45 100644 --- a/source/eventcore/drivers/posix/sockets.d +++ b/source/eventcore/drivers/posix/sockets.d @@ -718,9 +718,7 @@ final class PosixEventDriverSockets(Loop : PosixEventLoop) : EventDriverSockets } void receive(DatagramSocketFD socket, ubyte[] buffer, IOMode mode, DatagramIOCallback on_receive_finish) - @trusted { // DMD 2.072.0-b2: scope considered unsafe - import std.typecons : scoped; - + @safe { assert(mode != IOMode.all, "Only IOMode.immediate and IOMode.once allowed for datagram sockets."); sizediff_t ret; @@ -771,7 +769,7 @@ final class PosixEventDriverSockets(Loop : PosixEventLoop) : EventDriverSockets } private void onDgramRead(FD fd) - @trusted { // DMD 2.072.0-b2: scope considered unsafe + @safe { auto slot = () @trusted { return &m_loop.m_fds[fd].datagramSocket(); } (); auto socket = cast(DatagramSocketFD)fd;