mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-23 02:42:41 +00:00
Deduction can import stuff which can invalidate all of the value stores. Refactor out the code that diagnoses unused generic bindings, and scope the reference into the ImplStore so it can't be used after. Fetch the impl from the store again when setting the witness to error afterward if needed.