Skip to content

fix: Fix an incorrect ExpressionStore that was passed #19570

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 and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 10, 2025

Conversation

ChayimFriedman2
Copy link
Contributor

@ChayimFriedman2 ChayimFriedman2 commented Apr 10, 2025

It caused panics everywhere.

Fixes #19561.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 10, 2025
@@ -178,7 +178,7 @@ impl HirDisplay for Function {
AssocItemContainer::Impl(_) => "impl",
};
write!(f, "\n // Bounds from {container_name}:",)?;
write_where_predicates(&container_params, &data.store, f)?;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the type confusion here seems... suboptimal. can do this later, but would be nice to make this impossible to express in the future.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately I don't see how. It's not even a confusion between a body and a signature store, it's between a signature store and the signature store of the container.

@ChayimFriedman2 ChayimFriedman2 added this pull request to the merge queue Apr 10, 2025
Merged via the queue into rust-lang:master with commit 96925d5 Apr 10, 2025
14 checks passed
@ChayimFriedman2 ChayimFriedman2 deleted the fix-store-panic branch April 10, 2025 21:57
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.

thread 'Worker' panicked at crates\hir-ty\src\display.rs:2254:22:
3 participants