[Issue 20869] `std.algorithm.mutation : move` is overly trusting of `opPostMove`

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu May 28 15:51:20 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=20869

Dlang Bot <dlang-bot at dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #1 from Dlang Bot <dlang-bot at dlang.rocks> ---
@MoonlightSentinel created dlang/phobos pull request #7502 "Fix Issue 20869 -
`move` is overly trusting of `opPostMove`" fixing this issue:

- Fix Issue 20869 - `move` is overly trusting of `opPostMove`

  Remove the manual check whether move is `@safe` and instead let the
  compiler do the attribute interference by adding appropriate @trusted
  blocks.

  Note:
  I could've extend the current checks `trustedMoveImpl` but that could
  easily miss other corner cases.

https://github.com/dlang/phobos/pull/7502

--


More information about the Digitalmars-d-bugs mailing list