Skip to content

Some docs about pointers recommend addr_of macros instead of &raw #133024

Description

@CatsAreFluffy

Location

Primitive type pointer
core::ptr::read_unaligned
core::ptr::write_unaligned

Summary

The above documentation pages suggest using ptr::addr_of and ptr::addr_of_mut respectively, but the pages for those macros recommend using &raw const and &raw mut instead.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Libs-SmallLibs issues that are considered "small" or self-containedT-libsRelevant to the library team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions