mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 12:51:04 +01:00
Rename various TryToCompleteType functions to better describe what they do. (#4658)
As requested in review of #4652.
This commit is contained in:
@@ -103,7 +103,7 @@ static auto HandleAnyBindingPattern(Context& context, Parse::NodeId node_id,
|
||||
|
||||
// A `var` declaration at class scope introduces a field.
|
||||
auto parent_class_decl = context.GetCurrentScopeAs<SemIR::ClassDecl>();
|
||||
cast_type_id = context.AsCompleteType(
|
||||
cast_type_id = context.AsConcreteType(
|
||||
cast_type_id, type_node,
|
||||
[&] {
|
||||
CARBON_DIAGNOSTIC(IncompleteTypeInVarDecl, Error,
|
||||
|
||||
Reference in New Issue
Block a user