Rename various TryToCompleteType functions to better describe what they do. (#4658)

As requested in review of #4652.
This commit is contained in:
Richard Smith
2024-12-10 20:56:37 +00:00
committed by GitHub
parent fe8b42148f
commit 92201ceb10
10 changed files with 79 additions and 51 deletions
+3 -3
View File
@@ -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);
}