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:
parent
1dade3bd24
commit
4435d2f7f4
@ -161,7 +161,7 @@ impl<N> IterableMut<N> for DVec<N> {
|
||||
|
||||
impl<N> FromIterator<N> for DVec<N> {
|
||||
#[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() };
|
||||
|
||||
for e in param {
|
||||
|
@ -17,7 +17,7 @@ mod metal;
|
||||
mod mat_macros;
|
||||
|
||||
/// 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;
|
||||
|
||||
impl Identity {
|
||||
|
@ -207,7 +207,7 @@ impl<N: One> One for vec::Vec0<N> {
|
||||
|
||||
impl<N> FromIterator<N> for vec::Vec0<N> {
|
||||
#[inline]
|
||||
fn from_iterator<I: Iterator<N>>(_: &mut I) -> vec::Vec0<N> {
|
||||
fn from_iterator<I: Iterator<N>>(_: I) -> vec::Vec0<N> {
|
||||
vec::Vec0
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ mod metal;
|
||||
mod vec_macros;
|
||||
|
||||
/// Vector of dimension 0.
|
||||
#[deriving(Eq, Encodable, Decodable, Clone, Rand, Zero, Show)]
|
||||
#[deriving(Eq, Decodable, Clone, Rand, Zero, Show)]
|
||||
pub struct Vec0<N>;
|
||||
|
||||
/// Vector of dimension 1.
|
||||
|
@ -560,7 +560,7 @@ macro_rules! from_iterator_impl(
|
||||
($t: ident, $param0: ident $(, $paramN: ident)*) => (
|
||||
impl<N> FromIterator<N> for $t<N> {
|
||||
#[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())*)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user