about summary refs log tree commit diff
path: root/src/test/codegen/stack-alloc-string-slice.rs
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2015-02-19 08:33:32 +0100
committerFelix S. Klock II <pnkfelix@pnkfx.org>2015-03-03 12:10:20 +0100
commite7c986105f8af0b4ec4a91a63fbd1706282d401c (patch)
treeb07dca60310265aedb20362d7466a37e1695599f /src/test/codegen/stack-alloc-string-slice.rs
parentcf18e9c331e697faa11e395f6ccf3b0230af7aae (diff)
downloadrust-e7c986105f8af0b4ec4a91a63fbd1706282d401c.tar.gz
rust-e7c986105f8af0b4ec4a91a63fbd1706282d401c.zip
Fixes to collections to accommodate arith-overflow changes.
* `collections::btree::node`: accommodate (transient) underflow.

* `collections::btree::map`: avoid underflow during `fn next`
  for `BTreeMap::range` methods.

* `collections::slice`: note that pnkfelix deliberately used
  `new_pos_wrapping` only once; the other cases of arithmetic do not
  over- nor underflow, which is a useful property to leave implicitly
  checked/documented via the remaining calls to `fn new_pos(..)`.

* `collections::vec_deque` applied wrapping ops (somewhat blindly)
  to two implementation methods, and many tests.

* `std::collections::hash::table` : Use `OverflowingOps` trait to
  track overflow during `calculate_offsets` and `calculate_allocation`
  functions.
Diffstat (limited to 'src/test/codegen/stack-alloc-string-slice.rs')
0 files changed, 0 insertions, 0 deletions