std::cast -> std::mem

This commit is contained in:
Luqman Aden 2014-05-12 21:04:01 -04:00
parent 29b8f4ea16
commit 2a1ae1348c
2 changed files with 4 additions and 4 deletions

View file

@ -59,17 +59,17 @@ macro_rules! array(
#[inline] #[inline]
fn as_slice<'a>(&'a self) -> &'a [$T,..$n] { fn as_slice<'a>(&'a self) -> &'a [$T,..$n] {
unsafe { ::std::cast::transmute(self) } unsafe { ::std::mem::transmute(self) }
} }
#[inline] #[inline]
fn as_mut_slice<'a>(&'a mut self) -> &'a mut [$T,..$n] { fn as_mut_slice<'a>(&'a mut self) -> &'a mut [$T,..$n] {
unsafe { ::std::cast::transmute(self) } unsafe { ::std::mem::transmute(self) }
} }
#[inline] #[inline]
fn from_slice(slice: [$T,..$n]) -> $Self { fn from_slice(slice: [$T,..$n]) -> $Self {
unsafe { ::std::cast::transmute(slice) } unsafe { ::std::mem::transmute(slice) }
} }
#[inline] #[inline]

View file

@ -13,7 +13,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
use std::cast::transmute; use std::mem::transmute;
use std::fmt; use std::fmt;
use std::num::Zero; use std::num::Zero;