From 8274c43ee6adef181d4d18c10e490dcb3ff144f1 Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Mon, 21 Feb 2022 17:48:50 +0300 Subject: [PATCH] Make useExperimental non-CLI argument --- .../kotlin/cli/common/arguments/CommonCompilerArguments.kt | 5 ----- compiler/testData/cli/js/jsExtraHelp.out | 1 - compiler/testData/cli/jvm/extraHelp.out | 1 - 3 files changed, 7 deletions(-) diff --git a/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/CommonCompilerArguments.kt b/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/CommonCompilerArguments.kt index 7d7a84f0dcd..30d6a60ff36 100644 --- a/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/CommonCompilerArguments.kt +++ b/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/CommonCompilerArguments.kt @@ -158,11 +158,6 @@ abstract class CommonCompilerArguments : CommonToolArguments() { ) var experimental: Array? = null - @Argument( - value = "-Xuse-experimental", - valueDescription = "", - description = "Enable, but don't propagate usages of experimental API for marker annotation with the given fully qualified name" - ) @IDEAPluginsCompatibilityAPI( IDEAPlatforms._212, // maybe 211 AS used it too IDEAPlatforms._213, diff --git a/compiler/testData/cli/js/jsExtraHelp.out b/compiler/testData/cli/js/jsExtraHelp.out index 938f3bd7996..3cecb78ba0a 100644 --- a/compiler/testData/cli/js/jsExtraHelp.out +++ b/compiler/testData/cli/js/jsExtraHelp.out @@ -100,7 +100,6 @@ where advanced options include: -Xsuppress-version-warnings Suppress warnings about outdated, inconsistent or experimental language or API versions -Xunrestricted-builder-inference Eliminate builder inference restrictions like allowance of returning type variables of a builder inference call - -Xuse-experimental= Enable, but don't propagate usages of experimental API for marker annotation with the given fully qualified name -Xuse-fir Compile using Front-end IR. Warning: this feature is far from being production-ready -Xuse-fir-extended-checkers Use extended analysis mode based on Front-end IR. Warning: this feature is far from being production-ready -Xuse-mixed-named-arguments Enable Support named arguments in their own position even if the result appears as mixed diff --git a/compiler/testData/cli/jvm/extraHelp.out b/compiler/testData/cli/jvm/extraHelp.out index ccf32fe6569..5318f46a78f 100644 --- a/compiler/testData/cli/jvm/extraHelp.out +++ b/compiler/testData/cli/jvm/extraHelp.out @@ -209,7 +209,6 @@ where advanced options include: -Xsuppress-version-warnings Suppress warnings about outdated, inconsistent or experimental language or API versions -Xunrestricted-builder-inference Eliminate builder inference restrictions like allowance of returning type variables of a builder inference call - -Xuse-experimental= Enable, but don't propagate usages of experimental API for marker annotation with the given fully qualified name -Xuse-fir Compile using Front-end IR. Warning: this feature is far from being production-ready -Xuse-fir-extended-checkers Use extended analysis mode based on Front-end IR. Warning: this feature is far from being production-ready -Xuse-mixed-named-arguments Enable Support named arguments in their own position even if the result appears as mixed