diff options
| author | Felix S. Klock II <pnkfelix@pnkfx.org> | 2015-02-19 08:33:32 +0100 |
|---|---|---|
| committer | Felix S. Klock II <pnkfelix@pnkfx.org> | 2015-03-03 12:10:20 +0100 |
| commit | e7c986105f8af0b4ec4a91a63fbd1706282d401c (patch) | |
| tree | b07dca60310265aedb20362d7466a37e1695599f /src/rustllvm/ExecutionEngineWrapper.cpp | |
| parent | cf18e9c331e697faa11e395f6ccf3b0230af7aae (diff) | |
| download | rust-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/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
