diff options
author | Iain Buclaw <ibuclaw@gdcproject.org> | 2022-12-09 18:59:38 +0100 |
---|---|---|
committer | Iain Buclaw <ibuclaw@gdcproject.org> | 2022-12-11 17:17:58 +0100 |
commit | 6d799f0aed18be25a5c908499b6411ab6d06b78c (patch) | |
tree | 3e6a91048c7fe3e78bae9f75b24eb37c5504681b /libphobos/src/std/process.d | |
parent | cc7f509d3c0b3ab63891cf7ca2def0fdfb3642c4 (diff) | |
download | gcc-6d799f0aed18be25a5c908499b6411ab6d06b78c.zip gcc-6d799f0aed18be25a5c908499b6411ab6d06b78c.tar.gz gcc-6d799f0aed18be25a5c908499b6411ab6d06b78c.tar.bz2 |
d: Merge upstream dmd, druntime c8ae4adb2e, phobos 792c8b7c1.
D front-end changes:
- Import dmd v2.101.0.
- Deprecate the ability to call `__traits(getAttributes)' on
overload sets.
- Deprecate non-empty `for' statement increment clause with no
effect.
- Array literals assigned to `scope' array variables can now be
allocated on the stack.
D runtime changes:
- Import druntime v2.101.0.
Phobos changes:
- Import phobos v2.101.0.
gcc/d/ChangeLog:
* dmd/MERGE: Merge upstream dmd c8ae4adb2e.
* typeinfo.cc (check_typeinfo_type): Update for new front-end
interface.
(TypeInfoVisitor::visit (TypeInfoStructDeclaration *)): Remove warning
that toHash() must be declared 'nothrow @safe`.
libphobos/ChangeLog:
* libdruntime/MERGE: Merge upstream druntime c8ae4adb2e.
* src/MERGE: Merge upstream phobos 792c8b7c1.
Diffstat (limited to 'libphobos/src/std/process.d')
-rw-r--r-- | libphobos/src/std/process.d | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/libphobos/src/std/process.d b/libphobos/src/std/process.d index d4fe8a1..3eaa283 100644 --- a/libphobos/src/std/process.d +++ b/libphobos/src/std/process.d @@ -1428,7 +1428,7 @@ version (Posix) @system unittest for (; environ[i] != null; ++i) { assert(e2[i] != null); - import core.stdc.string; + import core.stdc.string : strcmp; assert(strcmp(e2[i], environ[i]) == 0); } assert(e2[i] == null); @@ -1732,7 +1732,9 @@ version (Posix) @system unittest // Pipes void testPipes(Config config) { - import std.file, std.uuid, core.thread, std.exception; + import std.file : tempDir, exists, remove; + import std.uuid : randomUUID; + import std.exception : collectException; auto pipei = pipe(); auto pipeo = pipe(); auto pipee = pipe(); @@ -1753,11 +1755,14 @@ version (Posix) @system unittest // Files void testFiles(Config config) { - import std.ascii, std.file, std.uuid, core.thread, std.exception; + import std.ascii : newline; + import std.file : tempDir, exists, remove, readText, write; + import std.uuid : randomUUID; + import std.exception : collectException; auto pathi = buildPath(tempDir(), randomUUID().toString()); auto patho = buildPath(tempDir(), randomUUID().toString()); auto pathe = buildPath(tempDir(), randomUUID().toString()); - std.file.write(pathi, "INPUT"~std.ascii.newline); + write(pathi, "INPUT" ~ newline); auto filei = File(pathi, "r"); auto fileo = File(patho, "w"); auto filee = File(pathe, "w"); |