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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun May 31 02:33:31 UTC 2020


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/phobos pull request #7502 "Fix Issue 20869 - `move` is overly trusting of
`opPostMove`" was merged into master:

- 082f8300d9d1a423b73cd31320bc86efa78a37e0 by MoonlightSentinel:
  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