Skip to content

Commit 0607178

Browse files
committed
A missing ! made it so that the testcase schedule_home_states was throwing spurious assert failures. Why this did not result in the test case failing previously is beyond me.
1 parent 27818ea commit 0607178

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/rt/task.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ impl Task {
212212
/// On a special scheduler?
213213
pub fn on_special() -> bool {
214214
do Local::borrow::<Scheduler,bool> |sched| {
215-
sched.run_anything
215+
!sched.run_anything
216216
}
217217
}
218218

0 commit comments

Comments
 (0)