Skip to content

fix: Do not replace closure capture place types with errors if they fail to normalize#22319

Merged
ShoyuVanilla merged 1 commit into
rust-lang:masterfrom
ChayimFriedman2:closure-normalize
May 8, 2026
Merged

fix: Do not replace closure capture place types with errors if they fail to normalize#22319
ShoyuVanilla merged 1 commit into
rust-lang:masterfrom
ChayimFriedman2:closure-normalize

Conversation

@ChayimFriedman2

@ChayimFriedman2 ChayimFriedman2 commented May 8, 2026

Copy link
Copy Markdown
Contributor

This prevents panics, and we need to get rid of this normalization anyway, see rust-lang/rust#155767.

Fixes #22316.

…o normalize

This prevents panics, and we need to get rid of this normalization anyway, see rust-lang/rust#155767.
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 8, 2026
Ok(())
}

// FIXME: It's suspicious that this is public; clippy should probably use `walk_expr`.

@ShoyuVanilla ShoyuVanilla May 8, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@ShoyuVanilla ShoyuVanilla added this pull request to the merge queue May 8, 2026
Merged via the queue into rust-lang:master with commit ecc571a May 8, 2026
18 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 8, 2026
@ChayimFriedman2 ChayimFriedman2 deleted the closure-normalize branch May 8, 2026 03:32
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.

Panic in determine_capture_mutability (deref of unexpected pointer type Code: -32603 )

3 participants