Skip to content

Commit

Permalink
Merge pull request #20672 from pbackus/revert-17495
Browse files Browse the repository at this point in the history
Revert "Enable -preview=fieldwise by default"
  • Loading branch information
thewilsonator authored Jan 9, 2025
2 parents c790229 + 99b4a5d commit d1ade05
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 12 deletions.
8 changes: 0 additions & 8 deletions changelog/dmd.fieldwise.dd

This file was deleted.

4 changes: 1 addition & 3 deletions compiler/src/dmd/cli.d
Original file line number Diff line number Diff line change
Expand Up @@ -944,8 +944,6 @@ dmd -cov -unittest myprog.d
"https://github.com/dlang/DIPs/blob/master/DIPs/other/DIP1000.md"),
Feature("intpromote", "fix16997", "revert integral promotions for unary + - ~ operators"),
Feature("dtorfields", "dtorFields", "don't destruct fields of partially constructed objects"),
Feature("fieldwise", "fieldwise", "don't use fieldwise comparisons for struct equality",
"https://dlang.org/changelog/2.085.0.html#no-cmpsb"),
];

/// Returns all available previews
Expand All @@ -966,7 +964,7 @@ dmd -cov -unittest myprog.d
Feature("bitfields", "bitfields", "add C-like bitfields",
"https://github.com/dlang/dlang.org/pull/3190"),
Feature("fieldwise", "fieldwise", "use fieldwise comparisons for struct equality",
"https://dlang.org/changelog/2.085.0.html#no-cmpsb", false, false),
"https://dlang.org/changelog/2.085.0.html#no-cmpsb"),
Feature("fixAliasThis", "fixAliasThis",
"when a symbol is resolved, check alias this scope before going to upper scopes",
"https://github.com/dlang/dmd/pull/8885"),
Expand Down
1 change: 1 addition & 0 deletions compiler/test/compilable/previewhelp.d
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Upcoming language changes listed by -preview=name:
=dip1008 implement @nogc Throwable DIP (https://github.com/dlang/DIPs/blob/master/DIPs/other/DIP1008.md)
=dip1021 implement Mutable Function Arguments DIP (https://github.com/dlang/DIPs/blob/master/DIPs/accepted/DIP1021.md)
=bitfields add C-like bitfields (https://github.com/dlang/dlang.org/pull/3190)
=fieldwise use fieldwise comparisons for struct equality (https://dlang.org/changelog/2.085.0.html#no-cmpsb)
=fixAliasThis when a symbol is resolved, check alias this scope before going to upper scopes (https://github.com/dlang/dmd/pull/8885)
=rvaluerefparam enable rvalue arguments to ref parameters (https://gist.github.com/andralex/e5405a5d773f07f73196c05f8339435a)
=safer more safety checks by default (https://github.com/WalterBright/documents/blob/38f0a846726b571f8108f6e63e5e217b91421c86/safer.md)
Expand Down
1 change: 0 additions & 1 deletion compiler/test/compilable/reverthelp.d
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@ Revertable language changes listed by -revert=name:
=dip1000 revert DIP1000 changes (Scoped Pointers) (https://github.com/dlang/DIPs/blob/master/DIPs/other/DIP1000.md)
=intpromote revert integral promotions for unary + - ~ operators
=dtorfields don't destruct fields of partially constructed objects
=fieldwise don't use fieldwise comparisons for struct equality (https://dlang.org/changelog/2.085.0.html#no-cmpsb)
----
*/

0 comments on commit d1ade05

Please sign in to comment.