mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 19:51:09 +01:00
Add a result for Subst() to return when you want to recurse into the instructions operands but not the type_id. This comes up when recursing and looking for facet types written in an instruction, but not referenced indirectly through a type_id. We can't skip adding the instruction to the worklist entirely, since we need to pop it back off to rebuild the containing instruction later. So we just mark it with a skip flag, and don't call Subst() on it. The suggestion for a change to Subst was made in https://github.com/carbon-language/carbon-lang/pull/7367#discussion_r3423446839.