mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 12:31:04 +01:00
Rename "generic instance" to "specific" throughout the toolchain. (#4165)
As discussed in toolchain meeting, we want to avoid overloading the meaning of "instance", and "specific" was the best name we found. It's a little unorthodox and inventive, but hopefully over time will become as unsurprising as the term "generic" is.
This commit is contained in:
@@ -26,7 +26,7 @@ auto CheckFunctionTypeMatches(Context& context,
|
||||
auto new_return_type_id =
|
||||
new_function.GetDeclaredReturnType(context.sem_ir());
|
||||
auto prev_return_type_id = prev_function.GetDeclaredReturnType(
|
||||
context.sem_ir(), SemIR::GenericInstanceId::Invalid);
|
||||
context.sem_ir(), SemIR::SpecificId::Invalid);
|
||||
if (new_return_type_id == SemIR::TypeId::Error ||
|
||||
prev_return_type_id == SemIR::TypeId::Error) {
|
||||
return false;
|
||||
@@ -72,7 +72,7 @@ auto CheckFunctionTypeMatches(Context& context,
|
||||
|
||||
auto CheckFunctionReturnType(Context& context, SemIRLoc loc,
|
||||
SemIR::Function& function,
|
||||
SemIR::GenericInstanceId specific_id)
|
||||
SemIR::SpecificId specific_id)
|
||||
-> SemIR::Function::ReturnSlot {
|
||||
// If we have already checked the return type, we have nothing to do.
|
||||
if (function.return_slot != SemIR::Function::ReturnSlot::NotComputed &&
|
||||
|
||||
Reference in New Issue
Block a user