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 Mar 3, 2023
1 parent b4db844 commit 90c3005
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compiler/src/dmd/globals.d
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ extern (C++) struct Param
// https://digitalmars.com/d/archives/digitalmars/D/Binding_rvalues_to_ref_parameters_redux_325087.html
// Implementation: https://github.com/dlang/dmd/pull/9817
FeatureState 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 inclusiveInContracts; // 'in' contracts of overridden methods must be a superset of parent contract
bool shortenedMethods = true; // allow => in normal function declarations
bool fixImmutableConv; // error on unsound immutable conversion - https://github.com/dlang/dmd/pull/14070
Expand Down
2 changes: 1 addition & 1 deletion compiler/test/run.d
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,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 90c3005

Please sign in to comment.