mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Rename various TryToCompleteType functions to better describe what they do. (#4658)
As requested in review of #4652.
This commit is contained in:
@@ -143,7 +143,7 @@ static auto BuildInterfaceWitness(
|
||||
// TODO: This is going to try and define all the interfaces for this facet
|
||||
// type, and so once we support impl of a facet type with more than one
|
||||
// interface, it might give the wrong name in the diagnostic.
|
||||
if (!context.TryToDefineType(
|
||||
if (!context.RequireDefinedType(
|
||||
facet_type_id, context.insts().GetLocId(impl.definition_id), [&] {
|
||||
CARBON_DIAGNOSTIC(ImplOfUndefinedInterface, Error,
|
||||
"implementation of undefined interface {0}",
|
||||
|
||||
Reference in New Issue
Block a user