On 9/1/13 8:23 AM, Oren Ben-Kiki wrote:
Since swap seems to have its own problems - would it be possible to
tweak the stealing idea so the compiler would know there's a burrowed
mutable pointer to the hole, effectively preventing further access to it
in the vulnerable block?

I really would like to be able to use this approach, it really improved
my code...

What's the problem with a generalized swap (>= 2 elements, any permutation) for your use case?

Patrick

_______________________________________________
Rust-dev mailing list
Rust-dev@mozilla.org
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to