Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to fix missing Copy implementations #771

Closed
bvssvni opened this issue Dec 12, 2014 · 0 comments
Closed

How to fix missing Copy implementations #771

bvssvni opened this issue Dec 12, 2014 · 0 comments

Comments

@bvssvni
Copy link
Member

bvssvni commented Dec 12, 2014

Rust now uses opt-in Copy, which means the type can be copied implicitly. rust-lang/rust#19566

  1. Add #![deny(missing_copy_implementations)] at crate level
  2. Put #[deriving(Copy)] where needed

If raw pointers are used, add #![deny(raw_pointer_deriving)] and then add #[allow(missing_copy_implementations)] to each struct that uses a raw pointer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant