mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 09:34:42 +01:00
Rename various TryToCompleteType functions to better describe what they do. (#4658)
As requested in review of #4652.
This commit is contained in:
@@ -179,7 +179,7 @@ static auto ExtendImpl(Context& context, Parse::NodeId extend_node,
|
||||
parent_scope.set_has_error();
|
||||
return;
|
||||
}
|
||||
if (!context.TryToDefineType(constraint_id, node_id, [&] {
|
||||
if (!context.RequireDefinedType(constraint_id, node_id, [&] {
|
||||
CARBON_DIAGNOSTIC(
|
||||
ExtendUndefinedInterface, Error,
|
||||
"`extend impl` requires a definition for facet type {0}",
|
||||
|
||||
Reference in New Issue
Block a user