-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
project-libuserRelated to the libuserRelated to the libuserstatus-upstreamBlocked by an upstream bugBlocked by an upstream bugtodo 🗒️Created by the todo botCreated by the todo bot
Description
Rust seems to have a bit of a weird bug around the interaction of DerefMut, Pin and FnMut. See rust-lang/rust#65489.
SunriseOS/libuser/src/types.rs
Lines 201 to 211 in f5ac31a
| // 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
project-libuserRelated to the libuserRelated to the libuserstatus-upstreamBlocked by an upstream bugBlocked by an upstream bugtodo 🗒️Created by the todo botCreated by the todo bot