mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 19:51:09 +01:00
- A concrete query should poison any further specializations of an impl that are found in the same file. - A symbolic query should poison any final specializations of an impl that are found in the same file. - A final generic specialization should allow generic code to use the concrete type in an associated constant. The last one was discussed in open discussion: https://docs.google.com/document/d/1Iut5f2TQBrtBNIduF4vJYOKfw7MbS8xH_J01_Q4e6Rk/edit?resourcekey=0-mc_vh5UzrzXfU4kO-3tOjA&tab=t.0#heading=h.g7v3y38ydkc7 We decided to take this approach for now, as it reduces possible states that we have to deal with in the toolchain. And we can revisit if it's causing problems for ordering impls in carbon code.