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

Additional traits for std::mem::ManuallyDrop #44310

Merged
merged 2 commits into from
Sep 12, 2017
Merged

Commits on Sep 4, 2017

  1. Derive std::mem::ManuallyDrop from Clone and Copy.

    Although types that don't implement Drop can't be Copyable, this can
    still be useful when ManuallyDrop is used inside a generic type. This
    doesn't derive from Copy as that would require T: Copy + Clone, instead
    it provides an impl of Clone for T: Clone.
    ldr709 committed Sep 4, 2017
    Configuration menu
    Copy the full SHA
    6276dbd View commit details
    Browse the repository at this point in the history
  2. Additional traits for std::mem::ManuallyDrop

    Add pass-through implementations for all of the derivable traits. These
    cannot be derived since ManuallyDrop is a union.
    ldr709 committed Sep 4, 2017
    Configuration menu
    Copy the full SHA
    94301c4 View commit details
    Browse the repository at this point in the history