forked from M-Labs/nalgebra
Update to the last rust-nightly.
Version of rustc: 0.12.0-pre-nightly (2e92c67dc 2014-08-28 23:56:20 +0000).
This commit is contained in:
parent
f83e7d25a8
commit
560dff3891
4
Makefile
4
Makefile
@ -1,5 +1,4 @@
|
||||
tmp=_git_distcheck
|
||||
nalgebra_doc_path=doc
|
||||
|
||||
all:
|
||||
cargo build --release
|
||||
@ -12,8 +11,7 @@ bench:
|
||||
rm bench~
|
||||
|
||||
doc:
|
||||
mkdir -p $(nalgebra_doc_path)
|
||||
rustdoc src/lib.rs
|
||||
cargo doc
|
||||
|
||||
clean:
|
||||
cargo clean
|
||||
|
@ -52,14 +52,14 @@ impl<N> vec::Vec0<N> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<N> Iterable<N> for vec::Vec0<N> {
|
||||
impl<N: 'static> Iterable<N> for vec::Vec0<N> {
|
||||
#[inline]
|
||||
fn iter<'l>(&'l self) -> Items<'l, N> {
|
||||
unsafe { mem::transmute::<&'l vec::Vec0<N>, &'l [N, ..0]>(self).iter() }
|
||||
}
|
||||
}
|
||||
|
||||
impl<N> IterableMut<N> for vec::Vec0<N> {
|
||||
impl<N: 'static> IterableMut<N> for vec::Vec0<N> {
|
||||
#[inline]
|
||||
fn mut_iter<'l>(&'l mut self) -> MutItems<'l, N> {
|
||||
unsafe { mem::transmute::<&'l mut vec::Vec0<N>, &'l mut [N, ..0]>(self).mut_iter() }
|
||||
|
Loading…
Reference in New Issue
Block a user