Skip to content
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
4 changes: 2 additions & 2 deletions std/internal/uni.d
Original file line number Diff line number Diff line change
Expand Up @@ -313,15 +313,15 @@ struct CodepointSet
ivals[i-1] = ivals[i];//moveAll(ivals[1..$], ivals[0..$-1]);
ivals = ivals[0..$-1];
if(!__ctfe)
assumeSafeAppend(ivals);
cast(void)assumeSafeAppend(ivals);
}
if(ivals[$-1] != endOfRange)
insertInPlaceAlt(ivals, ivals.length, endOfRange);
else
{
ivals = ivals[0..$-1] ;
if(!__ctfe)
assumeSafeAppend(ivals);
cast(void)assumeSafeAppend(ivals);
}
assert(!(ivals.length & 1));
return this;
Expand Down
2 changes: 1 addition & 1 deletion std/net/curl.d
Original file line number Diff line number Diff line change
Expand Up @@ -4146,7 +4146,7 @@ private static size_t _receiveAsyncLines(Terminator, Unit)
{
buffer = cast(Unit[])buf;
buffer.length = 0;
buffer.assumeSafeAppend();
cast(void)buffer.assumeSafeAppend();
bufferValid = true;
},
(bool flag) { aborted = true; }
Expand Down
4 changes: 2 additions & 2 deletions std/stdio.d
Original file line number Diff line number Diff line change
Expand Up @@ -1623,7 +1623,7 @@ Allows to directly use range operations on lines of a file.
import std.algorithm : endsWith;

assert(file.isOpen);
assumeSafeAppend(line);
cast(void)assumeSafeAppend(line);
file.readln(line, terminator);
if (line.empty)
{
Expand Down Expand Up @@ -1809,7 +1809,7 @@ the contents may well have changed).
{
static import std.file;

/* the C function tmpfile doesn't seem to work, even when called from C */
/* the C function tmpfile doesn't seem to work, even when called from C */
auto deleteme = testFilename();
auto file = File(deleteme, "w+");
scope(success) std.file.remove(deleteme);
Expand Down
5 changes: 2 additions & 3 deletions std/uni.d
Original file line number Diff line number Diff line change
Expand Up @@ -6584,9 +6584,9 @@ inout(C)[] normalize(NormalizationForm norm=NFC, C)(inout(C)[] input)
}
// reset variables
decomposed.length = 0;
decomposed.assumeSafeAppend();
cast(void)decomposed.assumeSafeAppend();
ccc.length = 0;
ccc.assumeSafeAppend();
cast(void)ccc.assumeSafeAppend();
input = input[anchors[1]..$];
// and move on
anchors = splitNormalized!norm(input);
Expand Down Expand Up @@ -7921,4 +7921,3 @@ private:
}

}// version(!std_uni_bootstrap)