Skip to content

Commit cb0eeed

Browse files
committed
Remove a FIXME and workaround that appear to be obsolete
1 parent 372673b commit cb0eeed

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/libcore/comm.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,7 @@ resource port_ptr<T: send>(po: *rust_port) {
9494

9595
// Drain the port so that all the still-enqueued items get dropped
9696
while rustrt::rust_port_size(po) > 0u {
97-
// FIXME: For some reason if we don't assign to something here
98-
// we end up with invalid reads in the drop glue.
99-
let _t = recv_::<T>(po);
97+
recv_::<T>(po);
10098
}
10199
rustrt::del_port(po);
102100
}

0 commit comments

Comments
 (0)