Skip to content

Tracking issue for <*mut T, *const T>::{as_ref, as_mut_ref} #27780

Closed
@alexcrichton

Description

@alexcrichton

This is a tracking issue for the unstable ptr_as_ref feature of the standard library. These functions allow unsafely converting raw pointers to optional safe references, returning None if they're null.

I would personally vote for removing these, but there's certainly some usage throughout the standard distribution.

cc @gankro

Metadata

Metadata

Assignees

No one assigned

    Labels

    B-unstableBlocker: Implemented in the nightly compiler and unstable.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.final-comment-periodIn the final comment period and will be merged soon unless new substantive objections are raised.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions