-
-
Notifications
You must be signed in to change notification settings - Fork 747
Trigger a hard error on deprecation messages #5546
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
Changes from all commits
16431f1
16b9188
4b31727
5b456a1
d895932
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1099,7 +1099,6 @@ public: | |
| } | ||
| } | ||
|
|
||
| /// | ||
| @safe pure unittest | ||
| { | ||
| import std.algorithm.comparison : equal; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2546,7 +2546,6 @@ private: | |
| return this; | ||
| } | ||
|
|
||
| /// | ||
| @safe unittest | ||
| { | ||
| assert(unicode.Cyrillic.intersect('-').byInterval.empty); | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
@@ -4340,7 +4339,6 @@ if (sumOfIntegerTuple!sizes == 21) | |
| } | ||
| } | ||
|
|
||
| /// | ||
| @system pure unittest | ||
| { | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| import std.algorithm.comparison : max; | ||
|
|
@@ -4644,7 +4642,6 @@ public struct MatcherConcept | |
| return this; | ||
| } | ||
|
|
||
| /// | ||
| @safe unittest | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| { | ||
| auto m = utfMatcher!char(unicode.Number); | ||
|
|
@@ -4762,9 +4759,9 @@ template Utf8Matcher() | |
| static auto encode(size_t sz)(dchar ch) | ||
| if (sz > 1) | ||
| { | ||
| import std.utf : encode; | ||
| import std.utf : encodeUTF = encode; | ||
| char[4] buf; | ||
| std.utf.encode(buf, ch); | ||
| encodeUTF(buf, ch); | ||
| char[sz] ret; | ||
| buf[0] &= leadMask!sz; | ||
| foreach (n; 1 .. sz) | ||
|
|
@@ -7380,7 +7377,7 @@ package auto simpleCaseFoldings(dchar ch) @safe | |
| return len == 0; | ||
| } | ||
|
|
||
| @property uint length() const | ||
| @property size_t length() const | ||
| { | ||
| if (isSmall) | ||
| { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -53,7 +53,6 @@ version (Windows): | |
| private import core.sys.windows.windows; | ||
| private import std.conv; | ||
| private import std.string; | ||
| private import std.utf; | ||
| private import std.windows.syserror; | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Btw what's the reason for
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think very very old versions of D (well into 0.x) had imports public by default, like C header files.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wow -> #5553 |
||
|
|
||
| import std.internal.cstring; | ||
|
|
@@ -114,7 +113,7 @@ string fromMBSz(immutable(char)* s, int codePage = 0) | |
| sysErrorString(GetLastError())); | ||
| } | ||
|
|
||
| return std.utf.toUTF8(result[0 .. result.length-1]); // omit trailing null | ||
| return result[0 .. result.length-1].to!string; // omit trailing null | ||
| } | ||
| } | ||
| return s[0 .. c-s]; // string is ASCII, no conversion necessary | ||
|
|
||
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.
CsvReaderisprivate