Explorar el Código

Use `auto` for the CheckTypeOfConstantIsTypeType fn signature (#7089)

Dana Jansens hace 1 semana
padre
commit
744ab33484
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      toolchain/sem_ir/type.cpp

+ 2 - 1
toolchain/sem_ir/type.cpp

@@ -15,7 +15,8 @@ CARBON_DEFINE_ENUM_MASK_NAMES(TypeQualifiers) {
 };
 
 // Verify that the constant value's type is `TypeType` (or an error).
-static void CheckTypeOfConstantIsTypeType(File& file, ConstantId constant_id) {
+static auto CheckTypeOfConstantIsTypeType(File& file, ConstantId constant_id)
+    -> void {
   CARBON_CHECK(constant_id.is_constant(),
                "Canonicalizing non-constant type: {0}", constant_id);
   auto type_id =