Skip to content

Commit d208a5f

Browse files
committed
rustup; fix generator test
1 parent 602e1a0 commit d208a5f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
333c32a5a4a51cae562c47e0669bc5aeaf741c45
1+
b5e21dbb5cabdaaadc47a4d8e3f59979dcad2871

tests/compile-fail/generator-pinned-moved.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ where
2525

2626
fn next(&mut self) -> Option<Self::Item> {
2727
let me = unsafe { Pin::new_unchecked(&mut self.0) };
28-
match me.resume() {
28+
match me.resume(()) {
2929
GeneratorState::Yielded(x) => Some(x),
3030
GeneratorState::Complete(_) => None,
3131
}

tests/run-pass/generator.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ fn finish<T>(mut amt: usize, mut t: T) -> T::Return
99
// We are not moving the `t` around until it gets dropped, so this is okay.
1010
let mut t = unsafe { Pin::new_unchecked(&mut t) };
1111
loop {
12-
match t.as_mut().resume() {
12+
match t.as_mut().resume(()) {
1313
GeneratorState::Yielded(y) => amt -= y,
1414
GeneratorState::Complete(ret) => {
1515
assert_eq!(amt, 0);

0 commit comments

Comments
 (0)