aboutsummaryrefslogtreecommitdiff
path: root/libphobos/src/std
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2020-06-23 10:40:37 +0200
committerIain Buclaw <ibuclaw@gdcproject.org>2020-06-25 17:02:45 +0200
commit6948c7c3d29bf5892299550a19ce615a85ef9b2b (patch)
tree3ab9d80b327c79a5e3f1b611541c181d68949ce7 /libphobos/src/std
parent72acf751d8eb41bab7a4d8b4dd74f8165b10cd71 (diff)
downloadgcc-6948c7c3d29bf5892299550a19ce615a85ef9b2b.zip
gcc-6948c7c3d29bf5892299550a19ce615a85ef9b2b.tar.gz
gcc-6948c7c3d29bf5892299550a19ce615a85ef9b2b.tar.bz2
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/std')
-rw-r--r--libphobos/src/std/range/package.d2
1 files changed, 1 insertions, 1 deletions
diff --git a/libphobos/src/std/range/package.d b/libphobos/src/std/range/package.d
index fe581f3..13601cb 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);
}