Skip to content

Cover reference equality in primitive.reference API docs #54197

Closed
@brson

Description

@brson

This page: https://doc.rust-lang.org/std/primitive.reference.html

It's not obvious that reference equality is accomplished via implicit reference-pointer coercion plus ptr::eq. The ptr::eq docs mention this, but I would not look there to find reference equality.

The reference primitive page is someplace I would look for info about reference equality. Update this page to discuss reference equality, and link to ptr::eq.

Metadata

Metadata

Assignees

No one assigned

    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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions