commit
10e911d180
3 changed files with 5 additions and 7 deletions
|
@ -12,9 +12,7 @@
|
||||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
// 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.
|
||||||
#[feature(globs)];
|
#![feature(globs)]
|
||||||
|
|
||||||
#[feature(globs)];
|
|
||||||
|
|
||||||
extern crate cgmath;
|
extern crate cgmath;
|
||||||
extern crate test;
|
extern crate test;
|
||||||
|
|
|
@ -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]
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue