mozilla/rust — pull request #7631 by MarkJr94 (2013-07-07 01:31:07+00:00)
Title: Added overloaded Add and Sub traits for pointer arithmetic as per Issue #2122

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.