Enable -preview=fieldwise by default

Introduced in PR #9331, this was changed from a normal bug fix to a
-preview switch because enabling it triggered a suprious "statement is
not reachable" warning in Phobos. That warning has since been removed
(in PR #15568).
This commit is contained in:
Paul Backus 2024-12-08 12:40:20 -05:00 committed by The Dlang Bot
parent a7f6b04a0c
commit 6a7bd45a8e
4 changed files with 12 additions and 2 deletions

View file

@ -0,0 +1,8 @@
`-preview=fieldwise` is now enabled by default
This fixes a bug that affected some struct comparisons using the `==` operator.
For more information, see [the entry for `-preview=fieldwise` in the 2.085.0
changelog](https://dlang.org/changelog/2.085.0.html#no-cmpsb).
The new `-revert=fieldwise` switch can be used to disable the bug fix and
restore the original behavior of the `==` operator.