@@ -20,7 +20,6 @@ LUAU_FASTINTVARIABLE(LuauParseErrorLimit, 100)
2020LUAU_FASTFLAGVARIABLE(LuauSolverV2)
2121LUAU_FASTFLAGVARIABLE(LuauDeclareExternType)
2222LUAU_FASTFLAGVARIABLE(LuauParseStringIndexer)
23- LUAU_FASTFLAGVARIABLE(LuauCSTForReturnTypeFunctionTail)
2423LUAU_FASTFLAGVARIABLE(LuauParseAttributeFixUninit)
2524LUAU_DYNAMIC_FASTFLAGVARIABLE(DebugLuauReportReturnTypeVariadicWithTypeSuffix, false )
2625
@@ -1903,10 +1902,8 @@ AstTypePack* Parser::parseReturnType()
19031902 // possibly () -> ReturnType
19041903 if (lexer.current ().type != ' )' )
19051904 {
1906- if (FFlag::LuauCSTForReturnTypeFunctionTail && options.storeCstData )
1905+ if (options.storeCstData )
19071906 varargAnnotation = parseTypeList (result, resultNames, &commaPositions, &nameColonPositions);
1908- else if (options.storeCstData )
1909- varargAnnotation = parseTypeList (result, resultNames, &commaPositions);
19101907 else
19111908 varargAnnotation = parseTypeList (result, resultNames);
19121909 }
@@ -1950,7 +1947,7 @@ AstTypePack* Parser::parseReturnType()
19501947 Position returnArrowPosition = lexer.current ().location .begin ;
19511948 AstType* tail = parseFunctionTypeTail (begin, {nullptr , 0 }, {}, {}, copy (result), copy (resultNames), varargAnnotation);
19521949
1953- if (FFlag::LuauCSTForReturnTypeFunctionTail && options.storeCstData && tail->is <AstTypeFunction>())
1950+ if (options.storeCstData && tail->is <AstTypeFunction>())
19541951 {
19551952 cstNodeMap[tail] = allocator.alloc <CstTypeFunction>(
19561953 Position{0 , 0 },
0 commit comments