On 04/03/14 04:09 PM, Clark Gaebel wrote: > That works for the 90% case (pointer/reference types), but it'd be nice > to have something more generic that works for everything. > > - Clark
The optimization already works in other cases. It only fails to work in a subset of cases where the iterator is returning non-nullable pointers. This is caused by `Option` being special-cased for non-nullable pointers, without Rust communicating that the pointer is non-null. The linked issue explains it via a simple example.
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
