[Issue 19777] [REG2.086a] SortedRange.opSlice is wrongly `@trusted`

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Apr 28 14:14:29 UTC 2019


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

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 #6984 "fix Issue 19777 - SortedRange.opSlice should
infer safety" was merged into stable:

- 8430584344dc75c715d5db6442ad7aa336837659 by Martin Nowak:
  fix Issue 19777 - SortedRange.opSlice should infer safety

  - unittests did fail with DIP1000 due to missing return scope
    inference in chained range, thus leading to a scope violation
    which prevented `@safe` inference
  - fixed unittests by adding return scope to chain.Result
  - would still fail under dip1000 with other ranges that
    miss return scope on their opSlice
  - should not have any effect on non-DIP1000 usage

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

--


More information about the Digitalmars-d-bugs mailing list