Skip to content

Commit 56f4c84

Browse files
committed
Fix failing tests
1 parent 4c66ed3 commit 56f4c84

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/test/run-pass/cross-crate/auxiliary/cci_capture_clause.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::sync::mpsc::{Receiver, channel};
44
pub fn foo<T:'static + Send + Clone>(x: T) -> Receiver<T> {
55
let (tx, rx) = channel();
66
thread::spawn(move|| {
7-
tx.send(x.clone());
7+
let _ = tx.send(x.clone());
88
});
99
rx
1010
}
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
pub unsafe fn f(xs: Vec<isize> ) {
2-
xs.iter().map(|_x| { unsafe fn q() { panic!(); } }).collect::<Vec<()>>();
2+
let _ = xs.iter().map(|_x| { unsafe fn q() { panic!(); } }).collect::<Vec<()>>();
33
}

src/test/run-pass/issues/auxiliary/issue-9906.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ mod other {
1010
}
1111

1212
pub fn foo(){
13-
1+1;
13+
let _ = 1 + 1;
1414
}
1515
}

0 commit comments

Comments
 (0)