Skip to content

Should 'dereferenceable' take into account the dynamic size information where possible? #374

Open
@RalfJung

Description

@RalfJung

In some situations we require a pointer to be 'dereferenceable'. This is a property that requires a size (how many bytes of memory are dereferenceable), so what should that size be? In general this can only be a lower bound of the actual size due to extern types with a completely unknown size. However, for slices and dyn traits we could take into account the metadata when computing this size. In the future we also might have to consider user-defined DST and whether to take into account that size information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-open-questionCategory: An open question that we should revisit

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions