CLI: remove obsolete language feature arguments

These arguments switch language features which cannot be disabled
anymore because they're enabled from some LV not later than 1.4, and the
minimal supported LV is currently 1.4.
This commit is contained in:
Alexander Udalov
2023-10-24 22:48:55 +02:00
committed by Space Team
parent c2e67619ba
commit 2d308e7c27
9 changed files with 0 additions and 89 deletions
@@ -26,7 +26,6 @@ fun copyCommonCompilerArguments(from: CommonCompilerArguments, to: CommonCompile
to.dumpDirectory = from.dumpDirectory
to.dumpOnlyFqName = from.dumpOnlyFqName
to.dumpPerf = from.dumpPerf
to.effectSystem = from.effectSystem
to.enableBuilderInference = from.enableBuilderInference
to.enableSignatureClashChecks = from.enableSignatureClashChecks
to.expectActualClasses = from.expectActualClasses
@@ -64,8 +63,6 @@ fun copyCommonCompilerArguments(from: CommonCompilerArguments, to: CommonCompile
to.pluginOptions = from.pluginOptions?.copyOf()
to.profilePhases = from.profilePhases
to.progressiveMode = from.progressiveMode
to.properIeee754Comparisons = from.properIeee754Comparisons
to.readDeserializedContracts = from.readDeserializedContracts
to.relativePathBases = from.relativePathBases?.copyOf()
to.renderInternalDiagnosticNames = from.renderInternalDiagnosticNames
to.reportOutputFiles = from.reportOutputFiles
@@ -82,7 +79,6 @@ fun copyCommonCompilerArguments(from: CommonCompilerArguments, to: CommonCompile
to.useFirLT = from.useFirLT
to.useIrFakeOverrideBuilder = from.useIrFakeOverrideBuilder
to.useK2 = from.useK2
to.useMixedNamedArguments = from.useMixedNamedArguments
to.verbosePhases = from.verbosePhases?.copyOf()
return to
@@ -251,26 +251,6 @@ progressive mode enabled may cause compilation errors in progressive mode."""
field = value
}
@Argument(
value = "-Xeffect-system",
description = "Enable experimental language feature: effect system."
)
var effectSystem = false
set(value) {
checkFrozen()
field = value
}
@Argument(
value = "-Xread-deserialized-contracts",
description = "Enable reading contracts from metadata."
)
var readDeserializedContracts = false
set(value) {
checkFrozen()
field = value
}
@IDEAPluginsCompatibilityAPI(
IDEAPlatforms._212, // maybe 211 AS used it too
IDEAPlatforms._213,
@@ -291,16 +271,6 @@ progressive mode enabled may cause compilation errors in progressive mode."""
field = value
}
@Argument(
value = "-Xproper-ieee754-comparisons",
description = "Generate proper IEEE 754 comparisons in all cases if values are statically known to be of primitive numeric types."
)
var properIeee754Comparisons = false
set(value) {
checkFrozen()
field = value
}
@Argument(value = "-Xreport-perf", description = "Report detailed performance statistics.")
var reportPerf = false
set(value) {
@@ -542,16 +512,6 @@ They should be a subset of sources passed as free arguments."""
field = value
}
@Argument(
value = "-Xuse-mixed-named-arguments",
description = "Allow mixing named and unnamed arguments when the arguments appear in their default order."
)
var useMixedNamedArguments = false
set(value) {
checkFrozen()
field = value
}
@Argument(
value = "-Xmetadata-klib",
description = "Produce a klib that only contains the metadata of declarations.",
@@ -840,23 +800,6 @@ The corresponding calls' declarations may not be marked with @BuilderInference."
put(LanguageFeature.SoundSmartCastsAfterTry, LanguageFeature.State.DISABLED)
}
if (effectSystem) {
put(LanguageFeature.UseCallsInPlaceEffect, LanguageFeature.State.ENABLED)
put(LanguageFeature.UseReturnsEffect, LanguageFeature.State.ENABLED)
}
if (readDeserializedContracts) {
put(LanguageFeature.ReadDeserializedContracts, LanguageFeature.State.ENABLED)
}
if (properIeee754Comparisons) {
put(LanguageFeature.ProperIeee754Comparisons, LanguageFeature.State.ENABLED)
}
if (useMixedNamedArguments) {
put(LanguageFeature.MixedNamedArgumentsInTheirOwnPosition, LanguageFeature.State.ENABLED)
}
if (inferenceCompatibility) {
put(LanguageFeature.InferenceCompatibility, LanguageFeature.State.ENABLED)
}