Skip to content

Commit 1507df8

Browse files
committed
std::rt: Remove in incorrect assert
1 parent f7e242a commit 1507df8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/libstd/rt/sched.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ pub impl Scheduler {
148148
}
149149

150150
let sched = Local::take::<Scheduler>();
151-
assert!(sched.work_queue.is_empty());
151+
// XXX: Reenable this once we're using a per-task queue. With a shared
152+
// queue this is not true
153+
//assert!(sched.work_queue.is_empty());
152154
rtdebug!("scheduler metrics: %s\n", sched.metrics.to_str());
153155
return sched;
154156
}

0 commit comments

Comments
 (0)