Skip to content

Cache ambiguous trait results with caution around closures#21485

Closed
nikomatsakis wants to merge 1 commit intorust-lang:masterfrom
nikomatsakis:issue-19499-caching
Closed

Cache ambiguous trait results with caution around closures#21485
nikomatsakis wants to merge 1 commit intorust-lang:masterfrom
nikomatsakis:issue-19499-caching

Conversation

@nikomatsakis
Copy link
Copy Markdown
Contributor

Do not cache ambiguous results unless there is at least some inference by-product within.

Fixes #19499.

@rust-highfive
Copy link
Copy Markdown
Contributor

r? @brson

(rust_highfive has picked a reviewer for you, use r? to override)

@nikomatsakis
Copy link
Copy Markdown
Contributor Author

Closing in favor of #21523 to spare bors

lnicola pushed a commit to lnicola/rust that referenced this pull request Jan 27, 2026
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.

Type inference failure after switching to unboxed closure

3 participants