Hi Rust-Dev,

I have recently (using the latest rust from github) encountered some new warnings about "implicitly copying a non-implicitly-copyable value". I believe this is due to the fix for https://github.com/mozilla/rust/issues/2450.

This warning seems to pop up all over the place because, as the bug points out, vecs/strs are in-fact copied rather a lot (at least in the rust I have written). I think that in some places I can restructure the code to avoid copies, but that still leaves many places where I guess I need to either add a `copy` or just ignore the warning (or turn it off). I am worried that I will have to litter my code with `copy`.

The bug above mentions that the warning has been disabled for [Mozilla's] existing projects. So my question is: what is the long-term plan here? Will Mozilla's projects be restructured to avoid copying strs/vecs, or to add `copy` where it is not possible? Will the new vecs/strs make this a non-issue somehow (are vecs/strs still unique in the new scheme?)?

Please help me be less confused.

Thanks
Gareth
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to