Skip to content

Conversation

@taj-p
Copy link
Contributor

@taj-p taj-p commented Oct 24, 2025

An accompanying PR to rust-lang/rust#148079 which keeps these Rust Analyzer names consistent with core.


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/rust#90850 (comment)

Tracking Issue: rust-lang/rust#90850 (comment)

cc @marc0246

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 24, 2025
@ShoyuVanilla
Copy link
Member

I think this could be merged only after at least approved on rust-lang/rust. Though it's just an inherent method name change in rust-analyzer side but keeping them synced with std feels more comfortable as the crate name here is stdx 😄

@Veykril Veykril added this pull request to the merge queue Nov 9, 2025
Merged via the queue into rust-lang:master with commit 0788e84 Nov 9, 2025
15 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 9, 2025
@lnicola lnicola changed the title Rename downcast_[ref|mut]_unchecked -> downcast_unchecked_[ref|mut] minor: Rename downcast_[ref|mut]_unchecked -> downcast_unchecked_[ref|mut] Nov 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants