Remove a FIXME and workaround that appear to be obsolete
This commit is contained in:
@@ -94,9 +94,7 @@ resource port_ptr<T: send>(po: *rust_port) {
|
|||||||
|
|
||||||
// Drain the port so that all the still-enqueued items get dropped
|
// Drain the port so that all the still-enqueued items get dropped
|
||||||
while rustrt::rust_port_size(po) > 0u {
|
while rustrt::rust_port_size(po) > 0u {
|
||||||
// FIXME: For some reason if we don't assign to something here
|
recv_::<T>(po);
|
||||||
// we end up with invalid reads in the drop glue.
|
|
||||||
let _t = recv_::<T>(po);
|
|
||||||
}
|
}
|
||||||
rustrt::del_port(po);
|
rustrt::del_port(po);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user