utils.regex: Fix unittest depending on unsound array equality check#44
utils.regex: Fix unittest depending on unsound array equality check#44kinke wants to merge 1 commit intoCyberShadow:masterfrom kinke:patch-1
Conversation
The previous test really depended on `-preview=fieldwise`. See dlang/druntime#3142 (comment).
|
Hi, Sorry, I'm having some trouble understanding this change. The linked pull request, as well as the pull request linked from it, doesn't describe or rationalize any change in behaviour. As far as I can see there is some problem with the union, but even from looking at the |
|
The compiler does use a memcmp/ |
|
Hmm, I see. Thanks for clarifying. But, as this silently changes language behaviour, this doesn't seem to be a good way to effect such changes. Is it possible to make such comparisons cause a deprecation warning, forcing users to explicitly disambiguate into either a bitwise ( I feel like silent language changes like this should be approved by BDFLs before being accepted. |
|
This came unexpected to me too, so I don't know how to best handle that. I think |
|
Reduced it to this: https://run.dlang.io/is/OJDRNK This hasn't worked before v2.078, that's when this silent change was introduced. |
|
Applied as 994f4ac, thanks. |
The previous test really depended on
-preview=fieldwise.See dlang/druntime#3142 (comment).