Skip to content

The safety requirements of CStr::from_ptr have been made more strict than they used to be #100493

Open
@SoniEx2

Description

@SoniEx2

Location

CStr::from_ptr

Summary

#95948 introduced incompatible changes to the CStr docs. Namely, the docs now require immutability for the whole lifetime of 'a, instead of just while it's borrowed. See also this discussion on urlo. This is relevant to our crate, ltptr, which provides bound lifetimes for raw pointers and uses those in conversions: https://docs.rs/ltptr/0.1.4/ltptr/trait.FromLtPtr.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and tools

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions