Rename downcast_[ref|mut]_unchecked -> downcast_unchecked_[ref|mut] by taj-p · Pull Request #148079 · rust-lang/rust (original) (raw)

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation7 Commits1 Checks11 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

@taj-p

Intent

Renames downcast_[ref|mut]_unchecked to downcast_unchecked_[ref|mut] because we want to emphasise that it is the downcast that is unsafe, not the aliasing per:

#90850 (comment)

Tracking Issue: #90850 (comment)

cc @marc0246

@rustbot

rust-analyzer is developed in its own repository. If possible, consider making this change to rust-lang/rust-analyzer instead.

cc @rust-lang/rust-analyzer

@rustbot rustbot added T-compiler

Relevant to the compiler team, which will review and decide on the PR/issue.

T-libs

Relevant to the library team, which will review and decide on the PR/issue.

T-rust-analyzer

Relevant to the rust-analyzer team, which will review and decide on the PR/issue.

labels

Oct 24, 2025

@rustbot

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

@taj-p taj-p mentioned this pull request

Oct 24, 2025

@taj-p

@lnicola

Please squash, since revert commits defeat the purpose of submitting changes upstream.

@taj-p

Undo rust-analyzer changes

@taj-p

Please squash, since revert commits defeat the purpose of submitting changes upstream.

Done! Thanks @lnicola 🙏

@Mark-Simulacrum

@bors

📌 Commit b247f67 has been approved by Mark-Simulacrum

It is now in the queue for this repository.

@bors bors 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 8, 2025

bors added a commit that referenced this pull request

Nov 9, 2025

@bors

Rollup of 22 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

rust-timer added a commit that referenced this pull request

Nov 9, 2025

@rust-timer

Rollup merge of #148079 - taj-p:master, r=Mark-Simulacrum

Rename downcast_[ref|mut]_unchecked -> downcast_unchecked_[ref|mut]

Intent

Renames downcast_[ref|mut]_unchecked to downcast_unchecked_[ref|mut] because we want to emphasise that it is the downcast that is unsafe, not the aliasing per:

#90850 (comment)

Tracking Issue: #90850 (comment)

cc @marc0246

github-actions bot pushed a commit to rust-lang/stdarch that referenced this pull request

Nov 10, 2025

@bors

github-actions bot pushed a commit to rust-lang/miri that referenced this pull request

Nov 10, 2025

@bors

makai410 pushed a commit to makai410/rustc_public that referenced this pull request

Nov 10, 2025

@bors

makai410 pushed a commit to makai410/rust that referenced this pull request

Nov 10, 2025

@Zalathar

Rename downcast_[ref|mut]_unchecked -> downcast_unchecked_[ref|mut]

Intent

Renames downcast_[ref|mut]_unchecked to downcast_unchecked_[ref|mut] because we want to emphasise that it is the downcast that is unsafe, not the aliasing per:

rust-lang#90850 (comment)

Tracking Issue: rust-lang#90850 (comment)

cc @marc0246

makai410 pushed a commit to makai410/rust that referenced this pull request

Nov 10, 2025

@bors

makai410 pushed a commit to makai410/rustc_public that referenced this pull request

Nov 16, 2025

@bors

github-actions bot pushed a commit to model-checking/verify-rust-std that referenced this pull request

Nov 30, 2025

@Zalathar

Rename downcast_[ref|mut]_unchecked -> downcast_unchecked_[ref|mut]

Intent

Renames downcast_[ref|mut]_unchecked to downcast_unchecked_[ref|mut] because we want to emphasise that it is the downcast that is unsafe, not the aliasing per:

rust-lang#90850 (comment)

Tracking Issue: rust-lang#90850 (comment)

cc @marc0246

github-actions bot pushed a commit to model-checking/verify-rust-std that referenced this pull request

Nov 30, 2025

@bors

Labels

S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

T-compiler

Relevant to the compiler team, which will review and decide on the PR/issue.

T-libs

Relevant to the library team, which will review and decide on the PR/issue.

T-rust-analyzer

Relevant to the rust-analyzer team, which will review and decide on the PR/issue.