Skip to content

Generate PhantomData<UnsafeCell<T>> to make generic FFI structs lifetime invariant #506

@fitzgen

Description

@fitzgen

Talked with @aturon about this yesterday. This change is needed to make our generated structs invariant, since we can't understand the real variance of the C/C++ things' lifetimes.

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