smoke out remaining bugs

This commit is contained in:
Jorge Aparicio 2015-01-23 13:16:03 -05:00
parent ed82b5a70e
commit bfaf4227b8
5 changed files with 4 additions and 10 deletions

View File

@ -199,7 +199,7 @@ impl<'a> Iterator for Decompositions<'a> {
}
if !self.sorted {
for ch in self.iter {
for ch in self.iter.by_ref() {
let buffer = &mut self.buffer;
let sorted = &mut self.sorted;
{
@ -2154,7 +2154,7 @@ mod tests {
let s = "ศไทย中华Việt Nam";
let mut it = s.chars();
it.next();
assert!(it.zip(it.clone()).all(|(x,y)| x == y));
assert!(it.clone().zip(it).all(|(x,y)| x == y));
}
#[test]

View File

@ -1731,7 +1731,6 @@ mod test_map {
}
#[test]
#[ignore] // FIXME(japaric)
fn test_move_iter_drops() {
DROP_VECTOR.with(|v| {
*v.borrow_mut() = repeat(0).take(200).collect();
@ -1773,7 +1772,7 @@ mod test_map {
}
});
for _ in half {}
for _ in half.by_ref() {}
DROP_VECTOR.with(|v| {
let nk = (0u..100).filter(|&i| {

View File

@ -48,7 +48,6 @@ mod test {
}) }
#[test]
#[ignore] // FIXME(japaric)
fn demangle() {
t!("test", "test");
t!("_ZN4testE", "test");
@ -57,7 +56,6 @@ mod test {
}
#[test]
#[ignore] // FIXME(japaric)
fn demangle_dollars() {
t!("_ZN4$UP$E", "Box");
t!("_ZN8$UP$testE", "Boxtest");
@ -66,14 +64,12 @@ mod test {
}
#[test]
#[ignore] // FIXME(japaric)
fn demangle_many_dollars() {
t!("_ZN14test$u{20}test4foobE", "test test::foob");
t!("_ZN12test$UP$test4foobE", "testBoxtest::foob");
}
#[test]
#[ignore] // FIXME(japaric)
fn demangle_windows() {
t!("ZN4testE", "test");
t!("ZN14test$u{20}test4foobE", "test test::foob");

View File

@ -54,7 +54,7 @@ pub fn demangle(writer: &mut Writer, s: &str) -> IoResult<()> {
let mut chars = inner.chars();
while valid {
let mut i = 0;
for c in chars {
for c in chars.by_ref() {
if c.is_numeric() {
i = i * 10 + c as uint - '0' as uint;
} else {

View File

@ -10,7 +10,6 @@
// no-pretty-expanded FIXME #15189
// ignore-windows FIXME #13259
// ignore-test FIXME(japaric)
#![feature(unboxed_closures)]
#![feature(unsafe_destructor)]