Skip to content

Commit aa79244

Browse files
committed
rustup
1 parent 164a89f commit aa79244

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2226c09699a96520238e162777f44504f4a0a1a7
1+
df25d79a33b0c82b716699a75a41bfdc6089850a

tests/run-pass/async-fn.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,22 @@ fn raw_waker_clone(_this: *const ()) -> RawWaker {
2424
fn raw_waker_wake(_this: *const ()) {
2525
panic!("unimplemented");
2626
}
27+
fn raw_waker_wake_by_ref(_this: *const ()) {
28+
panic!("unimplemented");
29+
}
2730
fn raw_waker_drop(_this: *const ()) {}
2831

2932
static RAW_WAKER: RawWakerVTable = RawWakerVTable::new(
3033
raw_waker_clone,
3134
raw_waker_wake,
35+
raw_waker_wake_by_ref,
3236
raw_waker_drop,
3337
);
3438

3539
fn main() {
3640
let x = 5;
3741
let mut fut = foo(&x, 7);
38-
let waker = unsafe { Waker::new_unchecked(RawWaker::new(ptr::null(), &RAW_WAKER)) };
42+
let waker = unsafe { Waker::from_raw(RawWaker::new(ptr::null(), &RAW_WAKER)) };
3943
let mut context = Context::from_waker(&waker);
4044
assert_eq!(unsafe { Pin::new_unchecked(&mut fut) }.poll(&mut context), Poll::Ready(31));
4145
}

0 commit comments

Comments
 (0)