Skip to content

How to fix missing Copy implementations #771

@bvssvni

Description

@bvssvni

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions