]> git.lizzy.rs Git - rust.git/commit
implement raw pointer comparisons in librustc
authorDaniel Micay <danielmicay@gmail.com>
Thu, 12 Sep 2013 05:01:59 +0000 (01:01 -0400)
committerDaniel Micay <danielmicay@gmail.com>
Thu, 12 Sep 2013 05:58:39 +0000 (01:58 -0400)
commitb7435cf44783c9ab6cf16bc387299ed9891ae90d
tree5085980b7f4cc6798dc806c291eb420c4f8aec1f
parent62166611e7510b86f395dbf19973e442fd43c403
implement raw pointer comparisons in librustc

This is mostly for consistency, as you can now compare raw pointers in
constant expressions or without the standard library.

It also reduces the number of `ptrtoint` instructions in the IR, making
tracking down culprits of what's usually an anti-pattern easier.
src/librustc/middle/ty.rs
src/libstd/ptr.rs