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 3b69f0055b6..cedda032fa4 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 @@ -400,9 +400,10 @@ abstract class CommonCompilerArguments : CommonToolArguments() { } val optInDeprecatedFqNames = optInDeprecated?.toList().orEmpty() if (optInDeprecatedFqNames.isNotEmpty()) { - collector.report( - WARNING, "'-Xopt-in' is deprecated and will be removed in a future release, please use -opt-in instead" - ) + // TODO: uncomment this after -opt-in bootstrapping and Gradle script fixing +// collector.report( +// WARNING, "'-Xopt-in' is deprecated and will be removed in a future release, please use -opt-in instead" +// ) } put(AnalysisFlags.useExperimental, useExperimentalFqNames + optInDeprecatedFqNames + optIn?.toList().orEmpty()) put(AnalysisFlags.expectActualLinker, expectActualLinker) diff --git a/compiler/testData/cli/jvm/experimentalDeprecatedWarning.out b/compiler/testData/cli/jvm/experimentalDeprecatedWarning.out index c98cdfea8cd..48c04266a60 100644 --- a/compiler/testData/cli/jvm/experimentalDeprecatedWarning.out +++ b/compiler/testData/cli/jvm/experimentalDeprecatedWarning.out @@ -1,6 +1,5 @@ warning: '-Xexperimental' is deprecated and will be removed in a future release warning: '-Xuse-experimental' is deprecated and will be removed in a future release, please use -opt-in instead -warning: '-Xopt-in' is deprecated and will be removed in a future release, please use -opt-in instead warning: opt-in requirement marker org.test.Warning2 is deprecated. Warning2 warning: opt-in requirement marker org.test.Warning1 is deprecated. Warning1 OK diff --git a/compiler/testData/cli/jvm/unrestrictedBuilderInference.out b/compiler/testData/cli/jvm/unrestrictedBuilderInference.out index 1fb81166ae9..a2803e584f6 100644 --- a/compiler/testData/cli/jvm/unrestrictedBuilderInference.out +++ b/compiler/testData/cli/jvm/unrestrictedBuilderInference.out @@ -1,4 +1,3 @@ -warning: '-Xopt-in' is deprecated and will be removed in a future release, please use -opt-in instead compiler/testData/cli/jvm/unrestrictedBuilderInference.kt:3:9: warning: variable 'x' is never used val x = buildMap { ^