diff options
author | Iain Buclaw <ibuclaw@gdcproject.org> | 2020-06-23 10:40:37 +0200 |
---|---|---|
committer | Iain Buclaw <ibuclaw@gdcproject.org> | 2020-06-25 17:02:45 +0200 |
commit | 6948c7c3d29bf5892299550a19ce615a85ef9b2b (patch) | |
tree | 3ab9d80b327c79a5e3f1b611541c181d68949ce7 /libphobos/src | |
parent | 72acf751d8eb41bab7a4d8b4dd74f8165b10cd71 (diff) | |
download | gcc-6948c7c3d29bf5892299550a19ce615a85ef9b2b.tar.gz |
d: Turn on deprecation warnings by default.
This is the default in the upstream reference compiler, and can reduce
some confusion when comparing warning/error messages of gdc and dmd side
by side.
Merges libphobos with upstream druntime d05ebaad and phobos 021ae0df7.
Reviewed-on: https://github.com/dlang/druntime/pull/3127
https://github.com/dlang/phobos/pull/7521
gcc/d/ChangeLog:
* d-lang.cc (d_init_options): Turn on deprecation warnings by default.
libphobos/ChangeLog:
* libdruntime/MERGE: Merge upstream druntime d05ebaad.
* src/MERGE: Merge upstream phobos 021ae0df7.
* testsuite/libphobos.typeinfo/struct-align.d: Remove empty statement.
gcc/testsuite/ChangeLog:
* gdc.dg/asm1.d: Don't use deprecated asm syntax.
* gdc.dg/compilable.d: Add public to selective import.
* gdc.dg/lto/ltotests_0.d: Explicitly catch Throwable.
* gdc.dg/runnable.d: Remove empty statement.
Diffstat (limited to 'libphobos/src')
-rw-r--r-- | libphobos/src/MERGE | 2 | ||||
-rw-r--r-- | libphobos/src/std/range/package.d | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libphobos/src/MERGE b/libphobos/src/MERGE index 5900ca7c6a4..1562f747b74 100644 --- a/libphobos/src/MERGE +++ b/libphobos/src/MERGE @@ -1,4 +1,4 @@ -64ed4684fa2a0f2401f5b6df34f6dcb4c3973945 +021ae0df76727a32809a29887095ab7093489ea3 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/range/package.d b/libphobos/src/std/range/package.d index fe581f3853b..13601cb9da9 100644 --- a/libphobos/src/std/range/package.d +++ b/libphobos/src/std/range/package.d @@ -4874,7 +4874,7 @@ if (allSatisfy!(isInputRange, Ranges)) // Just make sure 1-range case instantiates. This hangs the compiler // when no explicit stopping policy is specified due to Bug 4652. auto stuff = lockstep([1,2,3,4,5], StoppingPolicy.shortest); - foreach (int i, a; stuff) + foreach (i, a; stuff) { assert(stuff[i] == a); } |