]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #7631 : MarkJr94/rust/ptr_arithmetic, r=thestinger
authorbors <bors@rust-lang.org>
Wed, 10 Jul 2013 18:46:41 +0000 (11:46 -0700)
committerbors <bors@rust-lang.org>
Wed, 10 Jul 2013 18:46:41 +0000 (11:46 -0700)
Added Add and Sub traits for pointer arithmetic. Any type that is a ```std::num::Int``` can be added to or subtracted from a pointer. Also my additions did not require any unsafe code, and the operators themselves are safe. Fixes #2122.


Trivial merge