CLI: remove obsolete -Xallow-result-return-type

This commit is contained in:
Alexander Udalov
2023-10-24 12:17:02 +02:00
committed by Space Team
parent 49c659b379
commit 9d5e1bdc47
16 changed files with 5 additions and 44 deletions
@@ -12,7 +12,6 @@ fun copyCommonCompilerArguments(from: CommonCompilerArguments, to: CommonCompile
to.allowAnyScriptsInSourceRoots = from.allowAnyScriptsInSourceRoots
to.allowKotlinPackage = from.allowKotlinPackage
to.allowResultReturnType = from.allowResultReturnType
to.apiVersion = from.apiVersion
to.autoAdvanceApiVersion = from.autoAdvanceApiVersion
to.autoAdvanceLanguageVersion = from.autoAdvanceLanguageVersion
@@ -341,16 +341,6 @@ They should be a subset of sources passed as free arguments."""
field = value
}
@Argument(
value = "-Xallow-result-return-type",
description = "Allow compiling code when 'kotlin.Result' is used as a return type."
)
var allowResultReturnType = false
set(value) {
checkFrozen()
field = value
}
@Argument(
value = "-Xlist-phases",
description = "List backend phases."
@@ -810,7 +800,6 @@ The corresponding calls' declarations may not be marked with @BuilderInference."
put(AnalysisFlags.optIn, useExperimentalFqNames + optIn?.toList().orEmpty())
put(AnalysisFlags.skipExpectedActualDeclarationChecker, metadataKlib)
put(AnalysisFlags.explicitApiVersion, apiVersion != null)
put(AnalysisFlags.allowResultReturnType, allowResultReturnType)
ExplicitApiMode.fromString(explicitApi)?.also { put(AnalysisFlags.explicitApiMode, it) } ?: collector.report(
CompilerMessageSeverity.ERROR,
"Unknown value for parameter -Xexplicit-api: '$explicitApi'. Value should be one of ${ExplicitApiMode.availableValues()}"