Skip to content

Document how ptr::drop_in_place behaves when dropping a slice panics #64407

Open
@gnzlbg

Description

@gnzlbg

When dropping a slice [T] using ptr::drop_in_place, a T::drop can panic. I can't find any documentation of what the behavior of the program is in that case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-FFIArea: Foreign function interface (FFI)A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-enhancementCategory: An issue proposing an enhancement or a PR with one.T-langRelevant to the language team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions