Skip to content

Commit 0273245

Browse files
committed
Fix stupid mutex binding lifetime bug.
Apparently this is a problem that's existed for quite a while and *still* hasn't been fixed. rust-lang/rust#37612
1 parent fb02163 commit 0273245

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/alloc_exec.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,10 @@ where
285285
let queue = self.queue.clone();
286286

287287
loop {
288-
while let Some(item) = queue.lock().pop_front() {
288+
while let Some(item) = {
289+
let item = queue.lock().pop_front();
290+
item
291+
} {
289292
match item {
290293
QueueItem::Poll(id) => {
291294
self.poll_task(id);

0 commit comments

Comments
 (0)