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; 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;