Skip to content

Commit

Permalink
[TEST ONLY] Enable preview=in by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Geod24 committed Nov 23, 2020
1 parent 0339f54 commit 19c41c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dmd/globals.d
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/run.d
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit 19c41c5

Please sign in to comment.