Skip to content

Support unsafely implementing trait, bypassing derive #3465

Description

@joshlf

Rust for Linux would like to manually implement certain traits, providing a manual justification of soundness. We can't support a manual unsafe impl because this locks us into a forwards-compatibility guarantee that we won't add non-defaulted items to the trait. Instead, we'll need to provide an unsafe-to-call macro, a #[derive(unsafe(zerocopy::...))], or some other form of indirection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions