[Issue 19777] [REG2.086a] SortedRange.opSlice is wrongly `@trusted`
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Apr 28 12:30:26 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=19777
Dlang Bot <dlang-bot at dlang.rocks> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |pull
--- Comment #1 from Dlang Bot <dlang-bot at dlang.rocks> ---
@MartinNowak created dlang/phobos pull request #6984 "fix Issue 19777 -
SortedRange.opSlice should infer safety" fixing this issue:
- 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