Skip to content

Tracking issue for weak_ptr_eq #55981

Closed
@Thomasdezeeuw

Description

@Thomasdezeeuw

This is a tracking issue for rc::Weak::ptr_eq and sync::Weak::ptr_eq.

Feature gate: #![feature(weak_ptr_eq)].

Steps:


Old issue:

Rc has a function called ptr_eq it compares if the Rc points to the value, not the values themselves. I would like to add the same function to Weak. I got an implementation but have two questions:

  • Does this require an RFC? Or is this small enough to do without one.
  • What to do with dangling pointer, e.g. created by Weak::new(). I would argue always return false if either one is dangling.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-apiRelevant to the library API 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