summaryrefslogtreecommitdiff
path: root/libphobos/src
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2022-05-27 19:36:06 +0200
committerIain Buclaw <ibuclaw@gdcproject.org>2022-05-27 20:19:02 +0200
commit610d789832b57e9ab0158b330865e24b9b699040 (patch)
tree0b42094ea5f69e9fd0257dd578589a60ef6b736a /libphobos/src
parentd822f4bbd714c6595f70cc68888dcebecfb6662d (diff)
downloadgcc-610d789832b57e9ab0158b330865e24b9b699040.tar.gz
d: Merge upstream dmd 4d07f22f2, druntime f89da313, phobos d46814c86.
D front-end changes: - `scope' semantics are now enforced in `@safe' code on pointers to stack memory, but only as deprecation warnings. - Overriding virtual functions are now marked with the `override' and `final' in the generated headers of `-fdump-c++-spec='. - `-fpreview=fiximmmutableconv` has been added that disallows implicitly converting a return value with indirections to immutable if it determines the result must be unique. D runtime changes: - Posix (excluding Darwin): Switch default GC signals from SIGUSR1/2 to SIGRTMIN/SIGRTMIN+1 Phobos changes: - Import latest bug fixes to mainline. gcc/d/ChangeLog: * dmd/MERGE: Merge upstream dmd 4d07f22f2 * d-lang.cc (d_handle_option): Handle OPT_fpreview_fiximmutableconv. * lang.opt (fpreview=fiximmutableconv): New option. * runtime.def (ARRAYAPPENDT): Remove. libphobos/ChangeLog: * libdruntime/MERGE: Merge upstream druntime f89da313. * src/MERGE: Merge upstream phobos d46814c86. Signed-off-by: Iain Buclaw <ibuclaw@gdcproject.org>
Diffstat (limited to 'libphobos/src')
-rw-r--r--libphobos/src/MERGE2
-rw-r--r--libphobos/src/std/package.d2
-rw-r--r--libphobos/src/std/process.d4
-rw-r--r--libphobos/src/std/utf.d4
4 files changed, 7 insertions, 5 deletions
diff --git a/libphobos/src/MERGE b/libphobos/src/MERGE
index 3de142fe009..ddf730ef333 100644
--- a/libphobos/src/MERGE
+++ b/libphobos/src/MERGE
@@ -1,4 +1,4 @@
-3a1cd9a01479155958c7799e573e55a93dd189a0
+d46814c86392007ebb4fb73cb684ef9e8caa605a
The first line of this file holds the git revision number of the last
merge done from the dlang/phobos repository.
diff --git a/libphobos/src/std/package.d b/libphobos/src/std/package.d
index a1d04444d62..bfb135b1885 100644
--- a/libphobos/src/std/package.d
+++ b/libphobos/src/std/package.d
@@ -35,6 +35,7 @@ public import
std.base64,
std.bigint,
std.bitmanip,
+ std.checkedint,
std.compiler,
std.complex,
std.concurrency,
@@ -50,6 +51,7 @@ public import
std.format,
std.functional,
std.getopt,
+ std.int128,
std.json,
std.math,
std.mathspecial,
diff --git a/libphobos/src/std/process.d b/libphobos/src/std/process.d
index 28bfb049c2b..d4fe8a1c7e8 100644
--- a/libphobos/src/std/process.d
+++ b/libphobos/src/std/process.d
@@ -613,7 +613,7 @@ private:
* writefln("Current process ID: %d", thisProcessID);
* ---
*/
-@property int thisProcessID() @trusted nothrow //TODO: @safe
+@property int thisProcessID() @trusted nothrow @nogc //TODO: @safe
{
version (Windows) return GetCurrentProcessId();
else version (Posix) return core.sys.posix.unistd.getpid();
@@ -632,7 +632,7 @@ private:
* writefln("Current thread ID: %s", thisThreadID);
* ---
*/
-@property ThreadID thisThreadID() @trusted nothrow //TODO: @safe
+@property ThreadID thisThreadID() @trusted nothrow @nogc //TODO: @safe
{
version (Windows)
return GetCurrentThreadId();
diff --git a/libphobos/src/std/utf.d b/libphobos/src/std/utf.d
index f0200ce7052..d22dac8b15d 100644
--- a/libphobos/src/std/utf.d
+++ b/libphobos/src/std/utf.d
@@ -4275,10 +4275,10 @@ private int impureVariable;
* UseReplacementDchar.no means throw `UTFException` for invalid UTF
*
* Throws:
- * `UTFException` if invalid UTF sequence and `useReplacementDchar` is set to `UseReplacementDchar.yes`
+ * `UTFException` if invalid UTF sequence and `useReplacementDchar` is set to `UseReplacementDchar.no`
*
* GC:
- * Does not use GC if `useReplacementDchar` is set to `UseReplacementDchar.no`
+ * Does not use GC if `useReplacementDchar` is set to `UseReplacementDchar.yes`
*
* Returns:
* A bidirectional range if `R` is a bidirectional range and not auto-decodable,