Skip to content

Rc/Arc::ptr_eq ignore the metadata of all wide pointers - #166144

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
RalfJung:rc-ptr-eq
Nov 23, 2026
Merged

rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
RalfJung:rc-ptr-eq

Conversation

@RalfJung

Copy link
Copy Markdown
Member

I don't know why the docs specifically mention dyn Trait pointers, but that seems just wrong -- the length of slices is ignored as well. This seems like a mistake that was introduced in #106450.

@rustbot rustbot added A-rc Area: `Rc` and `Arc` S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Nov 18, 2026
@rustbot

rustbot commented Nov 18, 2026

Copy link
Copy Markdown
Collaborator

r? @Mark-Simulacrum

rustbot has assigned @Mark-Simulacrum.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: libs
  • libs expanded to 38 candidates
  • Random selection from ChrisDenton, JohnTitor, Mark-Simulacrum, clarfonthey, maxdexh

Comment thread library/alloc/src/rcs/arc.rs Resolved
@Mark-Simulacrum

Copy link
Copy Markdown
Member

@bors r+ rollup

@rust-bors

rust-bors Bot commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 30c1bb5 has been approved by Mark-Simulacrum

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 22, 2026
rust-bors Bot pushed a commit that referenced this pull request Nov 22, 2026
…uwer

Rollup of 4 pull requests

Successful merges:

 - #165720 (windows: remove redundant prefix parsing in `PathBuf::_push`)
 - #166243 (Avoid terminator: None in check_enums in `split_block`)
 - #165434 (Stabilize `char::is_case_ignorable`, `char::is_cased`, and the `titlecase` feature)
 - #166144 (Rc/Arc::ptr_eq ignore the metadata of all wide pointers)
@rust-bors
rust-bors Bot merged commit e56c717 into rust-lang:main Nov 23, 2026
14 checks passed
@rustbot rustbot added this to the 1.102.0 milestone Nov 23, 2026
rust-bors Bot pushed a commit that referenced this pull request Nov 23, 2026
Rollup merge of #166144 - RalfJung:rc-ptr-eq, r=Mark-Simulacrum

Rc/Arc::ptr_eq ignore the metadata of all wide pointers

I don't know why the docs specifically mention `dyn Trait` pointers, but that seems just wrong -- the length of slices is ignored as well. This seems like a mistake that was introduced in #106450.
github-actions Bot pushed a commit to rust-lang/stdarch that referenced this pull request Nov 23, 2026
…uwer

Rollup of 4 pull requests

Successful merges:

 - rust-lang/rust#165720 (windows: remove redundant prefix parsing in `PathBuf::_push`)
 - rust-lang/rust#166243 (Avoid terminator: None in check_enums in `split_block`)
 - rust-lang/rust#165434 (Stabilize `char::is_case_ignorable`, `char::is_cased`, and the `titlecase` feature)
 - rust-lang/rust#166144 (Rc/Arc::ptr_eq ignore the metadata of all wide pointers)
github-merge-queue Bot pushed a commit to rust-lang/miri that referenced this pull request Nov 23, 2026
…uwer

Rollup of 4 pull requests

Successful merges:

 - rust-lang/rust#165720 (windows: remove redundant prefix parsing in `PathBuf::_push`)
 - rust-lang/rust#166243 (Avoid terminator: None in check_enums in `split_block`)
 - rust-lang/rust#165434 (Stabilize `char::is_case_ignorable`, `char::is_cased`, and the `titlecase` feature)
 - rust-lang/rust#166144 (Rc/Arc::ptr_eq ignore the metadata of all wide pointers)
@RalfJung
RalfJung deleted the rc-ptr-eq branch November 24, 2026 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-rc Area: `Rc` and `Arc` S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants