Skip to content

warning about unneeded unsafe functions is wrong #5954

@thestinger

Description

@thestinger

It can't know that the function is safe because it doesn't require unsafe code. A function can break invariants in private data that are relied upon by unsafe blocks elsewhere in the module.

The unneeded unsafe block warning is great, but I think the function equivalent should be removed.

@alexcrichton

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions