aboutsummaryrefslogtreecommitdiff
path: root/libphobos/src/std
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2025-01-14 20:51:45 +0100
committerIain Buclaw <ibuclaw@gdcproject.org>2025-01-14 21:01:33 +0100
commitc8894b681143041205d41e02ede112cef082bf2f (patch)
tree6f9723f0ec5c688110b7ea8175109a82de70b406 /libphobos/src/std
parent5006b9d810b102d7360b503288a983fc6488c289 (diff)
downloadgcc-c8894b681143041205d41e02ede112cef082bf2f.zip
gcc-c8894b681143041205d41e02ede112cef082bf2f.tar.gz
gcc-c8894b681143041205d41e02ede112cef082bf2f.tar.bz2
d: Merge upstream dmd, druntime d6f693b46a, phobos 336bed6d8.
D front-end changes: - Import latest fixes from dmd v2.110.0-rc.1. D runtime changes: - Import latest fixes from druntime v2.110.0-rc.1. Phobos changes: - Import latest fixes from phobos v2.110.0-rc.1. Included in the merge are fixes for the following PRs: PR d/118438 PR d/118448 PR d/118449 gcc/d/ChangeLog: * dmd/MERGE: Merge upstream dmd d6f693b46a. * d-incpath.cc (add_import_paths): Update for new front-end interface. libphobos/ChangeLog: * libdruntime/MERGE: Merge upstream druntime d6f693b46a. * src/MERGE: Merge upstream phobos 336bed6d8. * testsuite/libphobos.init_fini/custom_gc.d: Adjust test.
Diffstat (limited to 'libphobos/src/std')
-rw-r--r--libphobos/src/std/functional.d6
-rw-r--r--libphobos/src/std/socket.d2
-rw-r--r--libphobos/src/std/typecons.d2
3 files changed, 6 insertions, 4 deletions
diff --git a/libphobos/src/std/functional.d b/libphobos/src/std/functional.d
index cf7e3ff..b1b1382 100644
--- a/libphobos/src/std/functional.d
+++ b/libphobos/src/std/functional.d
@@ -1349,7 +1349,8 @@ template memoize(alias fun)
alias memoize = impl;
}
- auto impl(Args...)(Args args) if (is(typeof(fun(args))))
+ auto impl(Args...)(Args args)
+ if (is(typeof(fun(args))))
{
import std.typecons : Tuple, tuple;
import std.traits : Unqual;
@@ -1393,7 +1394,8 @@ template memoize(alias fun, uint maxSize)
alias memoize = impl;
}
- auto impl(Args...)(Args args) if (is(typeof(fun(args))))
+ auto impl(Args...)(Args args)
+ if (is(typeof(fun(args))))
{
static if (args.length > 0)
{
diff --git a/libphobos/src/std/socket.d b/libphobos/src/std/socket.d
index 7fa9974..99ac97a 100644
--- a/libphobos/src/std/socket.d
+++ b/libphobos/src/std/socket.d
@@ -15,7 +15,7 @@
/**
* Socket primitives.
- * Example: See $(SAMPLESRC listener.d) and $(SAMPLESRC htmlget.d)
+ * Example: See [listener.d](https://github.com/dlang/undeaD/blob/master/dmdsamples/listener.d) and [htmlget.d](https://github.com/dlang/undeaD/blob/master/dmdsamples/htmlget.d)
* License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
* Authors: Christopher E. Miller, $(HTTP klickverbot.at, David Nadlinger),
* $(HTTP thecybershadow.net, Vladimir Panteleev)
diff --git a/libphobos/src/std/typecons.d b/libphobos/src/std/typecons.d
index bd462f5..a841e47 100644
--- a/libphobos/src/std/typecons.d
+++ b/libphobos/src/std/typecons.d
@@ -3348,7 +3348,7 @@ package(std) Rebindable2!T rebindable2(T)(T value)
this(ref inout S rhs) @safe inout
{
- this.i = i;
+ this.i = rhs.i;
copied = true;
}
}