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 May 31, 2021
1 parent 005e82d commit f338141
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 @@ -142,7 +142,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 shortenedMethods; // allow => in normal function declarations
bool betterC; // be a "better C" compiler; no dependency on D runtime
bool addMain; // add a default main() function
Expand Down
2 changes: 1 addition & 1 deletion test/run.d
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,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 f338141

Please sign in to comment.