diff options
| author | bors <bors@rust-lang.org> | 2013-07-10 11:46:41 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-07-10 11:46:41 -0700 |
| commit | 90db8628c548537f453f33e6d253f1392d044e60 (patch) | |
| tree | 22a3c85baf0f2b800a6bfcd8a0eee2a5330051d9 /src/rt/rust_kernel.cpp | |
| parent | 8fa09736efcd100ec675a2fe0e29906607996485 (diff) | |
| parent | 294999c3508ef4cbc2d221f531a6255c82fb95d3 (diff) | |
| download | rust-90db8628c548537f453f33e6d253f1392d044e60.tar.gz rust-90db8628c548537f453f33e6d253f1392d044e60.zip | |
auto merge of #7631 : MarkJr94/rust/ptr_arithmetic, r=thestinger
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.
Diffstat (limited to 'src/rt/rust_kernel.cpp')
0 files changed, 0 insertions, 0 deletions
