Skip to content

Relax bounds on FromBytes for MaybeUninit<T>? #310

@joshlf

Description

@joshlf

Currently, in order for MaybeUninit<T>: FromBytes, we require that T: FromBytes. This was introduced in #308 to deal with the soundness hole described in #299. However, we could relax the bound from T: FromBytes to T: FromZeroes and it would still be sound. It's a bit "asymmetrical", but it's strictly more permissive, so maybe we should do it?

If we eventually implement #251, we should just relax these bounds to NoCell.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions