mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 22:02:52 +01:00
Rename various TryToCompleteType functions to better describe what they do. (#4658)
As requested in review of #4652.
This commit is contained in:
@@ -90,9 +90,9 @@ auto CheckFunctionReturnType(Context& context, SemIR::LocId loc_id,
|
||||
|
||||
// TODO: Consider suppressing the diagnostic if we've already diagnosed a
|
||||
// definition or call to this function.
|
||||
if (context.TryToCompleteType(return_info.type_id, loc_id,
|
||||
diagnose_incomplete_return_type,
|
||||
diagnose_abstract_return_type)) {
|
||||
if (context.RequireConcreteType(return_info.type_id, loc_id,
|
||||
diagnose_incomplete_return_type,
|
||||
diagnose_abstract_return_type)) {
|
||||
return_info = SemIR::ReturnTypeInfo::ForFunction(context.sem_ir(),
|
||||
function, specific_id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user