Update to the last Rust.

Version of rustc: rustc 0.10-pre (b8601a3 2014-03-28 06:26:47 -0700)
This commit is contained in:
Sébastien Crozet 2014-03-28 20:58:09 +01:00
parent 1dade3bd24
commit 4435d2f7f4
5 changed files with 5 additions and 5 deletions

View File

@ -161,7 +161,7 @@ impl<N> IterableMut<N> for DVec<N> {
impl<N> FromIterator<N> for DVec<N> { impl<N> FromIterator<N> for DVec<N> {
#[inline] #[inline]
fn from_iterator<I: Iterator<N>>(mut param: &mut I) -> DVec<N> { fn from_iterator<I: Iterator<N>>(mut param: I) -> DVec<N> {
let mut res = DVec { at: Vec::new() }; let mut res = DVec { at: Vec::new() };
for e in param { for e in param {

View File

@ -17,7 +17,7 @@ mod metal;
mod mat_macros; mod mat_macros;
/// Special identity matrix. All its operation are no-ops. /// Special identity matrix. All its operation are no-ops.
#[deriving(Eq, Encodable, Decodable, Clone, Rand, Show)] #[deriving(Eq, Decodable, Clone, Rand, Show)]
pub struct Identity; pub struct Identity;
impl Identity { impl Identity {

View File

@ -207,7 +207,7 @@ impl<N: One> One for vec::Vec0<N> {
impl<N> FromIterator<N> for vec::Vec0<N> { impl<N> FromIterator<N> for vec::Vec0<N> {
#[inline] #[inline]
fn from_iterator<I: Iterator<N>>(_: &mut I) -> vec::Vec0<N> { fn from_iterator<I: Iterator<N>>(_: I) -> vec::Vec0<N> {
vec::Vec0 vec::Vec0
} }
} }

View File

@ -16,7 +16,7 @@ mod metal;
mod vec_macros; mod vec_macros;
/// Vector of dimension 0. /// Vector of dimension 0.
#[deriving(Eq, Encodable, Decodable, Clone, Rand, Zero, Show)] #[deriving(Eq, Decodable, Clone, Rand, Zero, Show)]
pub struct Vec0<N>; pub struct Vec0<N>;
/// Vector of dimension 1. /// Vector of dimension 1.

View File

@ -560,7 +560,7 @@ macro_rules! from_iterator_impl(
($t: ident, $param0: ident $(, $paramN: ident)*) => ( ($t: ident, $param0: ident $(, $paramN: ident)*) => (
impl<N> FromIterator<N> for $t<N> { impl<N> FromIterator<N> for $t<N> {
#[inline] #[inline]
fn from_iterator<I: Iterator<N>>($param0: &mut I) -> $t<N> { fn from_iterator<I: Iterator<N>>(mut $param0: I) -> $t<N> {
$t::new($param0.next().unwrap() $(, $paramN.next().unwrap())*) $t::new($param0.next().unwrap() $(, $paramN.next().unwrap())*)
} }
} }