You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of rust-lang#126024 - oli-obk:candidate_key_caching_is_unsound_yay, r=<try>
Do not use global cache for selection candidates if opaque types can be constrained
fixesrust-lang#105787
r? `@ghost`
This is certainly the crudest way to make the cache sound wrt opaque types, but if perf lets us get away with this, let's do it in the old solver and let the new solver fix this correctly once and for all.
If perf is prohibitively bad, I'll look into alternatives (using canonical queries, checking whether any opaque types got constrained or whether decisions based on the availability of opaque types were made, still using the cache for things that can't possibly constrain opaque types (probably sound, famous last words), ..)
cc rust-lang#122192 (comment)
* [ ] check if this actually fixesrust-lang#105787 or if it just fixes the opaque type reproducer
0 commit comments