libphobos: Merge upstream phobos 99003a75a
authorIain Buclaw <ibuclaw@gdcproject.org>
Sun, 19 Apr 2020 13:48:27 +0000 (15:48 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Sun, 19 Apr 2020 13:48:32 +0000 (15:48 +0200)
Fixes hasLength unittest to pass on X32.

References: PR d/94609

Reviewed-on: https://github.com/dlang/phobos/pull/7448

libphobos/src/MERGE
libphobos/src/std/range/primitives.d

index 7570cd9b9fd7d6c1fb51f2b0a8f8681eb5510a3e..31a053ca2bb9be01e646a424896e88843c908f94 100644 (file)
@@ -1,4 +1,4 @@
-fb4f6a713f5b78742f93e072cff6a6c4ecf9323d
+99003a75a883d4ae28b276763f4d1f2a360cf1dd
 
 The first line of this file holds the git revision number of the last
 merge done from the dlang/phobos repository.
index 1a4e6fb2b9107054c0ecfa795cdd2e9189500a58..193ee952cf3b897a625b3841084e077e95f0006e 100644 (file)
@@ -1416,12 +1416,12 @@ unittest
     struct A { ulong length; }
     struct B { @property uint length() { return 0; } }
 
-    version (X86)
+    static if (is(size_t == uint))
     {
         static assert(!hasLength!(A));
         static assert(hasLength!(B));
     }
-    else version(X86_64)
+    else static if (is(size_t == ulong))
     {
         static assert(hasLength!(A));
         static assert(!hasLength!(B));