Skip to content

Tracking issue for weak_ptr_eq #55981

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCT-libs-api[DEPRECATED; DO NOT USE]

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions