From 8fa17e9ac970126d714c8d3c680146899bdc437a Mon Sep 17 00:00:00 2001 From: Geod24 Date: Tue, 28 Jul 2020 09:46:30 +0900 Subject: [PATCH] [TEST ONLY] Enable `preview=in` by default --- src/dmd/globals.d | 2 +- test/run.d | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dmd/globals.d b/src/dmd/globals.d index af8703cabc83..f8a2f600cc41 100644 --- a/src/dmd/globals.d +++ b/src/dmd/globals.d @@ -175,7 +175,7 @@ extern (C++) struct Param bool useTypeInfo = true; // generate runtime type information bool useExceptions = true; // support exception handling bool noSharedAccess; // read/write access to shared memory objects - bool previewIn; // `in` means `[ref] scope const`, accepts rvalues + bool previewIn = true; // `in` means `[ref] scope const`, accepts rvalues bool betterC; // be a "better C" compiler; no dependency on D runtime bool addMain; // add a default main() function bool allInst; // generate code for all template instantiations diff --git a/test/run.d b/test/run.d index af8fadbece04..5117eacc95d5 100755 --- a/test/run.d +++ b/test/run.d @@ -148,7 +148,7 @@ Options: args = ["all"]; // move any long-running tests to the front - static size_t sortKey(in ref Target target) + static size_t sortKey(const scope ref Target target) { const name = target.normalizedTestName; if (name.startsWith("runnable"))