From 2a1ae1348cfa777781047909bf74590339cdc49d Mon Sep 17 00:00:00 2001 From: Luqman Aden Date: Mon, 12 May 2014 21:04:01 -0400 Subject: [PATCH 1/2] std::cast -> std::mem --- src/cgmath/array.rs | 6 +++--- src/cgmath/plane.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cgmath/array.rs b/src/cgmath/array.rs index 4e4a0bc..9ae7dc6 100644 --- a/src/cgmath/array.rs +++ b/src/cgmath/array.rs @@ -59,17 +59,17 @@ macro_rules! array( #[inline] fn as_slice<'a>(&'a self) -> &'a [$T,..$n] { - unsafe { ::std::cast::transmute(self) } + unsafe { ::std::mem::transmute(self) } } #[inline] fn as_mut_slice<'a>(&'a mut self) -> &'a mut [$T,..$n] { - unsafe { ::std::cast::transmute(self) } + unsafe { ::std::mem::transmute(self) } } #[inline] fn from_slice(slice: [$T,..$n]) -> $Self { - unsafe { ::std::cast::transmute(slice) } + unsafe { ::std::mem::transmute(slice) } } #[inline] diff --git a/src/cgmath/plane.rs b/src/cgmath/plane.rs index b13576f..70552e1 100644 --- a/src/cgmath/plane.rs +++ b/src/cgmath/plane.rs @@ -13,7 +13,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -use std::cast::transmute; +use std::mem::transmute; use std::fmt; use std::num::Zero; From d85dba915f038eb033cf0de6a10807a70a6256ab Mon Sep 17 00:00:00 2001 From: Luqman Aden Date: Mon, 12 May 2014 21:09:16 -0400 Subject: [PATCH 2/2] Update crate attribute. --- src/bench/bench.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/bench/bench.rs b/src/bench/bench.rs index c5b2a30..2603bf2 100644 --- a/src/bench/bench.rs +++ b/src/bench/bench.rs @@ -12,9 +12,7 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -#[feature(globs)]; - -#[feature(globs)]; +#![feature(globs)] extern crate cgmath; extern crate test;