[phobos] [D-Programming-Language/phobos] 3200b0: Improve find's @safety

GitHub via phobos phobos at puremagic.com
Sun Oct 19 10:29:34 PDT 2014


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/phobos
  Commit: 3200b0864469ac1c523e75964f893f6a36ce49a0
      https://github.com/D-Programming-Language/phobos/commit/3200b0864469ac1c523e75964f893f6a36ce49a0
  Author: Brad Roberts <braddr at puremagic.com>
  Date:   2014-10-13 (Mon, 13 Oct 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  Improve find's @safety


  Commit: f70e1e41e453eec3a879770035128b5f3f9be89c
      https://github.com/D-Programming-Language/phobos/commit/f70e1e41e453eec3a879770035128b5f3f9be89c
  Author: Brad Roberts <braddr at puremagic.com>
  Date:   2014-10-13 (Mon, 13 Oct 2014)

  Changed paths:
    M std/algorithm.d
    M std/random.d

  Log Message:
  -----------
  Fix unpredictableSeed so that rndstuff can be used in @safe code

Allows:
1) canFind's tests to be @safe
2) allows the remainder of find's tests to be @safe


  Commit: aeaf63ede70e6dd36c070f291e21bc76031b29e1
      https://github.com/D-Programming-Language/phobos/commit/aeaf63ede70e6dd36c070f291e21bc76031b29e1
  Author: Brad Roberts <braddr at puremagic.com>
  Date:   2014-10-13 (Mon, 13 Oct 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  map should be @safe


  Commit: 1666bb6821fcadcc6e8ada6f4ce556671941a1a4
      https://github.com/D-Programming-Language/phobos/commit/1666bb6821fcadcc6e8ada6f4ce556671941a1a4
  Author: Brad Roberts <braddr at puremagic.com>
  Date:   2014-10-13 (Mon, 13 Oct 2014)

  Changed paths:
    M std/range.d

  Log Message:
  -----------
  cycle should be @safe


  Commit: ee08f39af5fbb5c05e062316c366bca1f7df11ea
      https://github.com/D-Programming-Language/phobos/commit/ee08f39af5fbb5c05e062316c366bca1f7df11ea
  Author: Brad Roberts <braddr at puremagic.com>
  Date:   2014-10-13 (Mon, 13 Oct 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  equal should be @safe


  Commit: 61a01cbf27565209df7a163a30c4da89bfdb7e5f
      https://github.com/D-Programming-Language/phobos/commit/61a01cbf27565209df7a163a30c4da89bfdb7e5f
  Author: Brad Roberts <braddr at puremagic.com>
  Date:   2014-10-13 (Mon, 13 Oct 2014)

  Changed paths:
    M std/range.d

  Log Message:
  -----------
  sequence should be @safe


  Commit: a2b1174f58035277a67e8385db8c813d5bc12625
      https://github.com/D-Programming-Language/phobos/commit/a2b1174f58035277a67e8385db8c813d5bc12625
  Author: Brad Roberts <braddr at puremagic.com>
  Date:   2014-10-13 (Mon, 13 Oct 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  cmp should be @safe


  Commit: 38c74788e3b5d05a8fb6f47d3b5f28718bda47d1
      https://github.com/D-Programming-Language/phobos/commit/38c74788e3b5d05a8fb6f47d3b5f28718bda47d1
  Author: Brad Roberts <braddr at puremagic.com>
  Date:   2014-10-13 (Mon, 13 Oct 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  minPos should be @safe


  Commit: c7f75bacb06bc034b42ff916cdbdb2a4a74ddfe9
      https://github.com/D-Programming-Language/phobos/commit/c7f75bacb06bc034b42ff916cdbdb2a4a74ddfe9
  Author: Brad Roberts <braddr at puremagic.com>
  Date:   2014-10-13 (Mon, 13 Oct 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  mismatch should be @safe


  Commit: e3a679207760444e1505472f95a50087bed8d955
      https://github.com/D-Programming-Language/phobos/commit/e3a679207760444e1505472f95a50087bed8d955
  Author: Brad Roberts <braddr at puremagic.com>
  Date:   2014-10-13 (Mon, 13 Oct 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  livenshteinDistance should be @safe


  Commit: 426bc40535cb04fcf2fa1e67fca8a384f5231aa9
      https://github.com/D-Programming-Language/phobos/commit/426bc40535cb04fcf2fa1e67fca8a384f5231aa9
  Author: Brad Roberts <braddr at puremagic.com>
  Date:   2014-10-13 (Mon, 13 Oct 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  copy should be @safe


  Commit: ad6bd732b33dd6d68e23fce2c2190ccf0ad62f2b
      https://github.com/D-Programming-Language/phobos/commit/ad6bd732b33dd6d68e23fce2c2190ccf0ad62f2b
  Author: Brad Roberts <braddr at puremagic.com>
  Date:   2014-10-13 (Mon, 13 Oct 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  swapRanges and reverse should be @safe


  Commit: 2eda1f1d076eb1ddd45e3b4d3bac62fcef9e955d
      https://github.com/D-Programming-Language/phobos/commit/2eda1f1d076eb1ddd45e3b4d3bac62fcef9e955d
  Author: Brad Roberts <braddr at puremagic.com>
  Date:   2014-10-13 (Mon, 13 Oct 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  bringToFront should be @safe


  Commit: d7bd499e0c21af14cbf0775e10533df55f823065
      https://github.com/D-Programming-Language/phobos/commit/d7bd499e0c21af14cbf0775e10533df55f823065
  Author: Brad Roberts <braddr at puremagic.com>
  Date:   2014-10-13 (Mon, 13 Oct 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  remove should be @safe


  Commit: 4e66cda63c69a3b614ef9a604dcc56a4b56c54e1
      https://github.com/D-Programming-Language/phobos/commit/4e66cda63c69a3b614ef9a604dcc56a4b56c54e1
  Author: Brad Roberts <braddr at puremagic.com>
  Date:   2014-10-13 (Mon, 13 Oct 2014)

  Changed paths:
    M std/random.d

  Log Message:
  -----------
  uniform should be @safe


  Commit: 140f312e85641a956978faae5de757e072d04110
      https://github.com/D-Programming-Language/phobos/commit/140f312e85641a956978faae5de757e072d04110
  Author: Brad Roberts <braddr at puremagic.com>
  Date:   2014-10-13 (Mon, 13 Oct 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  partition should be @safe


  Commit: 73272aa27774999c2c21e66b4feae21504f3288c
      https://github.com/D-Programming-Language/phobos/commit/73272aa27774999c2c21e66b4feae21504f3288c
  Author: Brad Roberts <braddr at puremagic.com>
  Date:   2014-10-13 (Mon, 13 Oct 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  topN should be @safe


  Commit: 61712f506f6d225f2cda5a02fed4d57fefc8b691
      https://github.com/D-Programming-Language/phobos/commit/61712f506f6d225f2cda5a02fed4d57fefc8b691
  Author: Brad Roberts <braddr at puremagic.com>
  Date:   2014-10-13 (Mon, 13 Oct 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  cache and reduce should be @safe


  Commit: 5ffe91fac1b0abaf42b0e0f8e667cd6a44769c1c
      https://github.com/D-Programming-Language/phobos/commit/5ffe91fac1b0abaf42b0e0f8e667cd6a44769c1c
  Author: Brad Roberts <braddr at puremagic.com>
  Date:   2014-10-13 (Mon, 13 Oct 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  fill should be @safe


  Commit: 012dde3e3d731c53b15b48aa43aaf08b17b0503c
      https://github.com/D-Programming-Language/phobos/commit/012dde3e3d731c53b15b48aa43aaf08b17b0503c
  Author: Brad Roberts <braddr at puremagic.com>
  Date:   2014-10-13 (Mon, 13 Oct 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  filter should be @safe


  Commit: 0731be725d7d3b5f49925aa1e58213b9f6f8d98a
      https://github.com/D-Programming-Language/phobos/commit/0731be725d7d3b5f49925aa1e58213b9f6f8d98a
  Author: Brad Roberts <braddr at puremagic.com>
  Date:   2014-10-13 (Mon, 13 Oct 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  swap should be @safe


  Commit: 40096b78a6b70417099a927a3412224b94f66bda
      https://github.com/D-Programming-Language/phobos/commit/40096b78a6b70417099a927a3412224b94f66bda
  Author: Brad Roberts <braddr at puremagic.com>
  Date:   2014-10-13 (Mon, 13 Oct 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  forward should be @safe


  Commit: 635db401e9121edeff0085b3f52f048a1551e8bc
      https://github.com/D-Programming-Language/phobos/commit/635db401e9121edeff0085b3f52f048a1551e8bc
  Author: Brad Roberts <braddr at puremagic.com>
  Date:   2014-10-13 (Mon, 13 Oct 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  splitter should be @safe


  Commit: b772034db289f375b0a71f953a99d73cbd10e8d3
      https://github.com/D-Programming-Language/phobos/commit/b772034db289f375b0a71f953a99d73cbd10e8d3
  Author: Brad Roberts <braddr at puremagic.com>
  Date:   2014-10-13 (Mon, 13 Oct 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  joiner should be @safe


  Commit: 63659e9655f9d9bd2091bbd1ef98a50e4f6d57a4
      https://github.com/D-Programming-Language/phobos/commit/63659e9655f9d9bd2091bbd1ef98a50e4f6d57a4
  Author: Brad Roberts <braddr at puremagic.com>
  Date:   2014-10-13 (Mon, 13 Oct 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  uniq should be @safe


  Commit: e8c7699aa33ac2ad881384ba5217254db45615c2
      https://github.com/D-Programming-Language/phobos/commit/e8c7699aa33ac2ad881384ba5217254db45615c2
  Author: Brad Roberts <braddr at puremagic.com>
  Date:   2014-10-13 (Mon, 13 Oct 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  group should be @safe


  Commit: a8a98fe57e4a1ce1704b7e877fc43401f399302d
      https://github.com/D-Programming-Language/phobos/commit/a8a98fe57e4a1ce1704b7e877fc43401f399302d
  Author: Brad Roberts <braddr at puremagic.com>
  Date:   2014-10-13 (Mon, 13 Oct 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  boyerMooreFinder and the find specializations using it should be @safe


  Commit: 351f7f0803d35f248843b3c8b405d519926d4628
      https://github.com/D-Programming-Language/phobos/commit/351f7f0803d35f248843b3c8b405d519926d4628
  Author: Brad Roberts <braddr at puremagic.com>
  Date:   2014-10-13 (Mon, 13 Oct 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  findSplit (and related) should be @safe


  Commit: 1c418ae8eeec024c385afb7fddf65a4bcef68064
      https://github.com/D-Programming-Language/phobos/commit/1c418ae8eeec024c385afb7fddf65a4bcef68064
  Author: Brad Roberts <braddr at puremagic.com>
  Date:   2014-10-13 (Mon, 13 Oct 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  until (and related) should be @safe


  Commit: fb5f80faaceb8fb21f74b6ee007a8d5c704ccc47
      https://github.com/D-Programming-Language/phobos/commit/fb5f80faaceb8fb21f74b6ee007a8d5c704ccc47
  Author: Brad Roberts <braddr at puremagic.com>
  Date:   2014-10-13 (Mon, 13 Oct 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  startsWith should be @safe


  Commit: 838c28f198731eb33d8b80599df30e06b7091efb
      https://github.com/D-Programming-Language/phobos/commit/838c28f198731eb33d8b80599df30e06b7091efb
  Author: Brad Roberts <braddr at puremagic.com>
  Date:   2014-10-13 (Mon, 13 Oct 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  endsWith and skipOver should be @safe


  Commit: 13791bf29cd448dee0267c0c71af0588af191af8
      https://github.com/D-Programming-Language/phobos/commit/13791bf29cd448dee0267c0c71af0588af191af8
  Author: Brad Roberts <braddr at puremagic.com>
  Date:   2014-10-13 (Mon, 13 Oct 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  commonPrefix should be @safe


  Commit: 8bcf058c99661bb89e8596f93afcc0f7629c5251
      https://github.com/D-Programming-Language/phobos/commit/8bcf058c99661bb89e8596f93afcc0f7629c5251
  Author: Brad Roberts <braddr at puremagic.com>
  Date:   2014-10-13 (Mon, 13 Oct 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  findAdjacent and findAmong should be @safe


  Commit: 15ccc7ddc84cab443828c20a1947ace71eb9971a
      https://github.com/D-Programming-Language/phobos/commit/15ccc7ddc84cab443828c20a1947ace71eb9971a
  Author: Brad Roberts <braddr at puremagic.com>
  Date:   2014-10-13 (Mon, 13 Oct 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  count should be @safe


  Commit: 06916cfce0531042ee2368ac9a02e8415cf5f495
      https://github.com/D-Programming-Language/phobos/commit/06916cfce0531042ee2368ac9a02e8415cf5f495
  Author: Brad Roberts <braddr at puremagic.com>
  Date:   2014-10-13 (Mon, 13 Oct 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  balancedParens should be @safe


  Commit: 2599af7c188f63a035b905b2b47c7035df4ce58e
      https://github.com/D-Programming-Language/phobos/commit/2599af7c188f63a035b905b2b47c7035df4ce58e
  Author: Brad Roberts <braddr at puremagic.com>
  Date:   2014-10-14 (Tue, 14 Oct 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  sorting should be @safe


  Commit: 1abecd3f32b4f10ad2acd2b6a4f78212759f2f53
      https://github.com/D-Programming-Language/phobos/commit/1abecd3f32b4f10ad2acd2b6a4f78212759f2f53
  Author: Brad Roberts <braddr at puremagic.com>
  Date:   2014-10-14 (Tue, 14 Oct 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  any and all should be @safe


  Commit: e9b65c08c3e502982bf2c4ee77ed5222c302037a
      https://github.com/D-Programming-Language/phobos/commit/e9b65c08c3e502982bf2c4ee77ed5222c302037a
  Author: Brad Roberts <braddr at puremagic.com>
  Date:   2014-10-14 (Tue, 14 Oct 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  set operations and nextPermutation should be @safe


  Commit: afc5dbe05bee6153d77b0b29421f467761bca941
      https://github.com/D-Programming-Language/phobos/commit/afc5dbe05bee6153d77b0b29421f467761bca941
  Author: Brad Roberts <braddr at puremagic.com>
  Date:   2014-10-14 (Tue, 14 Oct 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  nextEvenPermutation should be @safe


  Commit: 8e9b035324f0120a9fb79c3292fca8b07801359b
      https://github.com/D-Programming-Language/phobos/commit/8e9b035324f0120a9fb79c3292fca8b07801359b
  Author: Brad Roberts <braddr at puremagic.com>
  Date:   2014-10-14 (Tue, 14 Oct 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  cartesianProduct should be @safe


  Commit: 3cd14f0bb620acafb59ee322a843dd5a5fbe2a23
      https://github.com/D-Programming-Language/phobos/commit/3cd14f0bb620acafb59ee322a843dd5a5fbe2a23
  Author: Brad Roberts <braddr at puremagic.com>
  Date:   2014-10-14 (Tue, 14 Oct 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  reenable a disabled cartesianProduct unittest


  Commit: 6c79c245d05271f6209833d0ce519f75f22e689b
      https://github.com/D-Programming-Language/phobos/commit/6c79c245d05271f6209833d0ce519f75f22e689b
  Author: Brad Roberts <braddr at puremagic.com>
  Date:   2014-10-14 (Tue, 14 Oct 2014)

  Changed paths:
    M std/algorithm.d

  Log Message:
  -----------
  among should be @safe


  Commit: 68beb7c515c8818efd1dad064d7c798d103bcb01
      https://github.com/D-Programming-Language/phobos/commit/68beb7c515c8818efd1dad064d7c798d103bcb01
  Author: Andrei Alexandrescu <andrei at erdani.com>
  Date:   2014-10-19 (Sun, 19 Oct 2014)

  Changed paths:
    M std/algorithm.d
    M std/random.d
    M std/range.d

  Log Message:
  -----------
  Merge pull request #2613 from braddr/safe

mark most of std.algorithm's unit tests as @safe


Compare: https://github.com/D-Programming-Language/phobos/compare/fcfaad86bea9...68beb7c515c8


More information about the phobos mailing list