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"))