diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-08-02 21:41:06 -0700 | 
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-08-27 18:46:51 -0700 | 
| commit | 5c3504799deb78d986f8267f753a87fb9e73a452 (patch) | |
| tree | 20e9de7215edf2c27d59251b15afbd3c1d2b7e77 /src/libstd/to_bytes.rs | |
| parent | 58d6eb50483c44ecc72db6d77b71ad5d5a7aca4d (diff) | |
| download | rust-5c3504799deb78d986f8267f753a87fb9e73a452.tar.gz rust-5c3504799deb78d986f8267f753a87fb9e73a452.zip | |
librustc: Remove `&const` and `*const` from the language.
They are still present as part of the borrow check.
Diffstat (limited to 'src/libstd/to_bytes.rs')
| -rw-r--r-- | src/libstd/to_bytes.rs | 9 | 
1 files changed, 8 insertions, 1 deletions
| diff --git a/src/libstd/to_bytes.rs b/src/libstd/to_bytes.rs index 198c09964bb..01f57c231da 100644 --- a/src/libstd/to_bytes.rs +++ b/src/libstd/to_bytes.rs @@ -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) | 
