mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-16 22:28:11 +00:00
This is fixing a deduce crash, with regression tests added in binding_pattern.carbon. In `needs_substitution`, it adds the `BindSymbolicName` with the compile time bind index corresponding to the wrong generic scope, which causes a bad result. It appears `needs_substitution` logic is no longer needed (per zygoloid, `CheckDeductionIsComplete` handles related issues) so can be removed. This changes the order of IR in use_assoc_const.carbon but the result appears equivalent to me. This was a fuzzer-found crash.