Replace -Xuse-experimental with -Xopt-in in codebase

This commit is contained in:
Mikhail Glukhikh
2021-07-07 15:41:04 +03:00
committed by teamcityserver
parent 195b6d1fb1
commit 47c8bab48e
7 changed files with 12 additions and 17 deletions
@@ -314,8 +314,8 @@ class ExperimentalUsageChecker(project: Project) : CallChecker {
reportError: (String) -> Unit,
reportWarning: (String) -> Unit
) {
// Ideally, we should run full resolution (with all classifier usage checkers) on classifiers used in "-Xexperimental" and
// "-Xuse-experimental" arguments. However, it's not easy to do this. This should be solved in the future with the support of
// Ideally, we should run full resolution (with all classifier usage checkers) on classifiers used in
// "-Xopt-in" arguments. However, it's not easy to do this. This should be solved in the future with the support of
// module annotations. For now, we only check deprecations because this is needed to correctly retire unneeded compiler arguments.
val deprecationResolver = DeprecationResolver(
LockBasedStorageManager("ExperimentalUsageChecker"),