Skip to content
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

Build DUB with -preview=dip1000 #1711

Closed
wants to merge 1 commit into from
Closed
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
Allow building DUB with -preview=dip1000
  • Loading branch information
wilzbach committed Jul 31, 2019
commit 0aa2725d81fed94bf4bd6d67433069c94a335151
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
- d: gdc
include:
- stage: test
d: dmd-2.086.0
env: [FRONTEND=2.086]
d: dmd-2.087.0
env: [FRONTEND=2.087, DFLAGS=-preview=dip1000]
- d: dmd-2.081.1
env: [FRONTEND=2.081]
- d: dmd-2.080.1
Expand Down
4 changes: 2 additions & 2 deletions source/dub/internal/vibecompat/core/file.d
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ struct RangeFile {
@safe:
std.stdio.File file;

void put(in ubyte[] bytes) @trusted { file.rawWrite(bytes); }
void put(in char[] str) { put(cast(const(ubyte)[])str); }
void put(const scope ubyte[] bytes) @trusted { file.rawWrite(bytes); }
void put(const scope char[] str) { put(cast(const(ubyte)[])str); }
void put(char ch) @trusted { put((&ch)[0 .. 1]); }
void put(dchar ch) { char[4] chars; put(chars[0 .. encode(chars, ch)]); }

Expand Down