Commend -Xopt-in deprecation warning (due to bootstrap problems)
This commit is contained in:
committed by
teamcityserver
parent
a92ab1bc86
commit
a997a98054
+4
-3
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
^
|
||||
|
||||
Reference in New Issue
Block a user