Skip to content

Commit bfaf422

Browse files
author
Jorge Aparicio
committed
smoke out remaining bugs
1 parent ed82b5a commit bfaf422

File tree

5 files changed

+4
-10
lines changed

5 files changed

+4
-10
lines changed

src/libcollections/str.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ impl<'a> Iterator for Decompositions<'a> {
199199
}
200200

201201
if !self.sorted {
202-
for ch in self.iter {
202+
for ch in self.iter.by_ref() {
203203
let buffer = &mut self.buffer;
204204
let sorted = &mut self.sorted;
205205
{
@@ -2154,7 +2154,7 @@ mod tests {
21542154
let s = "ศไทย中华Việt Nam";
21552155
let mut it = s.chars();
21562156
it.next();
2157-
assert!(it.zip(it.clone()).all(|(x,y)| x == y));
2157+
assert!(it.clone().zip(it).all(|(x,y)| x == y));
21582158
}
21592159

21602160
#[test]

src/libstd/collections/hash/map.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1731,7 +1731,6 @@ mod test_map {
17311731
}
17321732

17331733
#[test]
1734-
#[ignore] // FIXME(japaric)
17351734
fn test_move_iter_drops() {
17361735
DROP_VECTOR.with(|v| {
17371736
*v.borrow_mut() = repeat(0).take(200).collect();
@@ -1773,7 +1772,7 @@ mod test_map {
17731772
}
17741773
});
17751774

1776-
for _ in half {}
1775+
for _ in half.by_ref() {}
17771776

17781777
DROP_VECTOR.with(|v| {
17791778
let nk = (0u..100).filter(|&i| {

src/libstd/rt/backtrace.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ mod test {
4848
}) }
4949

5050
#[test]
51-
#[ignore] // FIXME(japaric)
5251
fn demangle() {
5352
t!("test", "test");
5453
t!("_ZN4testE", "test");
@@ -57,7 +56,6 @@ mod test {
5756
}
5857

5958
#[test]
60-
#[ignore] // FIXME(japaric)
6159
fn demangle_dollars() {
6260
t!("_ZN4$UP$E", "Box");
6361
t!("_ZN8$UP$testE", "Boxtest");
@@ -66,14 +64,12 @@ mod test {
6664
}
6765

6866
#[test]
69-
#[ignore] // FIXME(japaric)
7067
fn demangle_many_dollars() {
7168
t!("_ZN14test$u{20}test4foobE", "test test::foob");
7269
t!("_ZN12test$UP$test4foobE", "testBoxtest::foob");
7370
}
7471

7572
#[test]
76-
#[ignore] // FIXME(japaric)
7773
fn demangle_windows() {
7874
t!("ZN4testE", "test");
7975
t!("ZN14test$u{20}test4foobE", "test test::foob");

src/libstd/sys/common/backtrace.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ pub fn demangle(writer: &mut Writer, s: &str) -> IoResult<()> {
5454
let mut chars = inner.chars();
5555
while valid {
5656
let mut i = 0;
57-
for c in chars {
57+
for c in chars.by_ref() {
5858
if c.is_numeric() {
5959
i = i * 10 + c as uint - '0' as uint;
6060
} else {

src/test/run-pass/backtrace.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111
// no-pretty-expanded FIXME #15189
1212
// ignore-windows FIXME #13259
13-
// ignore-test FIXME(japaric)
1413

1514
#![feature(unboxed_closures)]
1615
#![feature(unsafe_destructor)]

0 commit comments

Comments
 (0)