Skip to content

internal: Break hir-ty up, step 1 - #23181

Open
ChayimFriedman2 wants to merge 1 commit into
rust-lang:masterfrom
ChayimFriedman2:breakup-hir-ty-step1
Open

internal: Break hir-ty up, step 1#23181
ChayimFriedman2 wants to merge 1 commit into
rust-lang:masterfrom
ChayimFriedman2:breakup-hir-ty-step1

Conversation

@ChayimFriedman2

Copy link
Copy Markdown
Contributor

According to the plan outlined in Zulip.

This first step extracts the hir-ide crate, containing extra diagnostics, display, and tests. Tests must be in the leaf crate because they need access to the full database (some can go with a dummy impl for some methods, but it'll be more complicated than just moving them here).

We had to make some compromises; pretty-printing MIR and MIR errors requires display, so we need it to be in hir-ide, but then it can't be an inherent method, so we made it an extension trait and also made a proc macro to make that easier (copied from rustc).

hir_ty was find-and-replace'd with hir_ide in crates/hir/.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 18, 2026
@ChayimFriedman2
ChayimFriedman2 force-pushed the breakup-hir-ty-step1 branch 2 times, most recently from 3677a0d to c9d552f Compare August 18, 2026 12:28
@rustbot

This comment has been minimized.

@rustbot

This comment has been minimized.

@rustbot

This comment has been minimized.

According to the plan outlined [in Zulip](https://rust-lang.zulipchat.com/#narrow/channel/185405-t-compiler.2Frust-analyzer/topic/Breaking.20up.20hir-ty/near/617085080).

This first step extracts the `hir-ide` crate, containing extra diagnostics, display, and tests. Tests must be in the leaf crate because they need access to the full database (some can go with a dummy impl for some methods, but it'll be more complicated than just moving them here).

We had to make some compromises; pretty-printing MIR and MIR errors requires display, so we need it to be in `hir-ide`, but then it can't be an inherent method, so we made it an extension trait and also made a proc macro to make that easier (copied from rustc).
@rustbot

rustbot commented Aug 23, 2026

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@rustbot

rustbot commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

☔ The latest upstream changes (possibly #23212) made this pull request unmergeable. Please resolve the merge conflicts.

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.

2 participants