Skip to content

Condition module shouldn't require copyable types #3937

@ghost

Description

Throughout the new condition module, the type parameter U is bounded by Copy. Is this restriction necessary? It's preventing me from using the condition system with a function that returns a struct containing owned pointers without a bunch of type parameter instantiation warnings.

The type parameter V on the in method of Trap has the same restriction.

Activity

ghost

ghost commented on Dec 31, 2012

@ghost

This should be fixed by the combination of 8e28f23 and #4291 (once it's merged).

ghost

ghost commented on Jan 4, 2013

@ghost

This is fixed.

ghost closed this as completedon Jan 4, 2013
added a commit that references this issue on Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        No participants

        Issue actions

          Condition module shouldn't require copyable types · Issue #3937 · rust-lang/rust