1
Fork 0

librustc: Remove &const and *const from the language.

They are still present as part of the borrow check.
This commit is contained in:
Patrick Walton 2013-08-02 21:41:06 -07:00
parent 58d6eb5048
commit 5c3504799d
48 changed files with 309 additions and 460 deletions

View file

@ -343,7 +343,14 @@ impl<A:IterBytes> IterBytes for ~A {
// NB: raw-pointer IterBytes does _not_ dereference
// to the target; it just gives you the pointer-bytes.
impl<A> IterBytes for *const A {
impl<A> IterBytes for *A {
#[inline]
fn iter_bytes(&self, lsb0: bool, f: Cb) -> bool {
(*self as uint).iter_bytes(lsb0, f)
}
}
impl<A> IterBytes for *mut A {
#[inline]
fn iter_bytes(&self, lsb0: bool, f: Cb) -> bool {
(*self as uint).iter_bytes(lsb0, f)