about summary refs log tree commit diff
path: root/src/rt/rust_kernel.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-07-10 11:46:41 -0700
committerbors <bors@rust-lang.org>2013-07-10 11:46:41 -0700
commit90db8628c548537f453f33e6d253f1392d044e60 (patch)
tree22a3c85baf0f2b800a6bfcd8a0eee2a5330051d9 /src/rt/rust_kernel.cpp
parent8fa09736efcd100ec675a2fe0e29906607996485 (diff)
parent294999c3508ef4cbc2d221f531a6255c82fb95d3 (diff)
downloadrust-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