Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove wait_async_cb workaround rust-lang/rust#65489 #521

Open
todo bot opened this issue Oct 22, 2019 · 0 comments
Open

Remove wait_async_cb workaround rust-lang/rust#65489 #521

todo bot opened this issue Oct 22, 2019 · 0 comments
Assignees
Labels
project-libuser Related to the libuser status-upstream Blocked by an upstream bug todo 🗒️ Created by the todo bot

Comments

@todo
Copy link

todo bot commented Oct 22, 2019

Rust seems to have a bit of a weird bug around the interaction of DerefMut, Pin and FnMut. See rust-lang/rust#65489.


// TODO: Remove wait_async_cb workaround rust-lang/rust#65489
// BODY: Rust seems to have a bit of a weird bug around the
// BODY: interaction of DerefMut, Pin and FnMut. See
// BODY: https://github.com/rust-lang/rust/issues/65489.
let this = &mut *self;
if let Some(s) = (this.f)() {
core::task::Poll::Ready(s)
} else {
let _ = syscalls::clear_event(this.handle);
this.registered_on = Some(cx.waker().clone());


This issue was generated by todo based on a TODO comment in f5ac31a when #512 was merged. cc @roblabla.
@todo todo bot added the todo 🗒️ Created by the todo bot label Oct 22, 2019
@todo todo bot assigned roblabla Oct 22, 2019
@roblabla roblabla added project-libuser Related to the libuser status-upstream Blocked by an upstream bug labels Oct 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
project-libuser Related to the libuser status-upstream Blocked by an upstream bug todo 🗒️ Created by the todo bot
Projects
None yet
Development

No branches or pull requests

1 participant