[Issue 17730] [scope][dip1000] std.algorithm.move escapes scope variable in @safe code

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Oct 27 17:44:28 UTC 2017


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

--- Comment #4 from github-bugzilla at puremagic.com ---
Commits pushed to master at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/a34a25ead947fe6492fb0724b23dc5135c19ea1f
fix Issue 17730 - move escapes scope variable in @safe code

- needs to be annotated with return scope, so that the return value
  lifetime depends on the argument's lifetime
- cannot be tested because phobos doesn't yet work with DIP1000 and
  also because of Issue 17932

https://github.com/dlang/phobos/commit/61b7b517b0ab2a3eed45116f7476a0bd7a68837a
Merge pull request #5798 from MartinNowak/fix17730

fix Issue 17730 - move escapes scope variable in @safe code

--


More information about the Digitalmars-d-bugs mailing list