1
Fork 0

Remove FIXMEs and add license

This commit is contained in:
Niko Matsakis 2014-01-15 19:44:38 -05:00
parent e71571a3cd
commit 6badef49fe
4 changed files with 13 additions and 5 deletions

View file

@ -168,7 +168,7 @@ pub fn from_elem<T:Clone>(n_elts: uint, t: T) -> ~[T] {
let mut v = with_capacity(n_elts);
let p = v.as_mut_ptr();
let mut i = 0u;
(|| { // FIXME what if we fail in the middle of this loop?
(|| {
while i < n_elts {
intrinsics::move_val_init(&mut(*ptr::mut_offset(p, i as int)), t.clone());
i += 1u;