diff --git a/src/dmd/globals.d b/src/dmd/globals.d index 35072e531f25..f35b7be99817 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 b7026e5b7e7c..68ff126bfd2f 100755 --- a/test/run.d +++ b/test/run.d @@ -155,7 +155,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"))