Skip to content

Conversation

@taj-p
Copy link

@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 😄

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

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants