mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
The type of the query self is looked into for a witness, but that type may be unable to be identified. For example when the query is against `Self` inside the declaration of a named constraint. Before this PR, we would crash when identification failed. Now we produce a diagnostic. This makes `RequireIdentifiedFacetType` take a `ContextScope` callback (like it used to with an `AnnotationScope` callback) since all callers now expect to handle diagnostics, and can provide useful context. This is a followup to #6761.