[K/N] Fix KT-54498

Forward users to kotlinlang.org instead of new_mm.md because the latter
is obsolete now.
This commit is contained in:
Sergey Bogolepov
2022-10-17 16:54:23 +03:00
committed by Space Team
parent b5a23e3ef7
commit c6bbce986d
6 changed files with 8 additions and 8 deletions
@@ -144,7 +144,7 @@ class KonanConfig(val project: Project, val configuration: CompilerConfiguration
// TODO: When moving into proper deprecation cycle replace with WARNING. // TODO: When moving into proper deprecation cycle replace with WARNING.
configuration.report( configuration.report(
CompilerMessageSeverity.INFO, CompilerMessageSeverity.INFO,
"`freezing` should not be enabled with the new MM. Freezing API is deprecated since 1.7.20. See https://github.com/JetBrains/kotlin/blob/master/kotlin-native/NEW_MM.md#freezing-deprecation for details" "`freezing` should not be enabled with the new MM. Freezing API is deprecated since 1.7.20. See https://kotlinlang.org/docs/native-migration-guide.html for details"
) )
freezingMode freezingMode
} }
@@ -29,7 +29,7 @@ public actual annotation class ThreadLocal
* PLEASE NOTE THAT THIS ANNOTATION MAY GO AWAY IN UPCOMING RELEASES. * PLEASE NOTE THAT THIS ANNOTATION MAY GO AWAY IN UPCOMING RELEASES.
* *
* Since 1.7.20 usage of this annotation is deprecated. * Since 1.7.20 usage of this annotation is deprecated.
* See https://github.com/JetBrains/kotlin/blob/master/kotlin-native/NEW_MM.md#freezing-deprecation for details. * See https://kotlinlang.org/docs/native-migration-guide.html for details.
*/ */
@Target(AnnotationTarget.PROPERTY) @Target(AnnotationTarget.PROPERTY)
@Retention(AnnotationRetention.BINARY) @Retention(AnnotationRetention.BINARY)
@@ -13,7 +13,7 @@ import kotlin.time.Duration.Companion.microseconds
* *
* Kotlin/Native uses tracing garbage collector (GC) that is executed periodically to collect objects * Kotlin/Native uses tracing garbage collector (GC) that is executed periodically to collect objects
* that are not reachable from the "roots", like local and global variables. * that are not reachable from the "roots", like local and global variables.
* See [documentation](https://github.com/JetBrains/kotlin/blob/master/kotlin-native/NEW_MM.md) to learn more about * See [documentation](https://kotlinlang.org/docs/native-memory-manager.html) to learn more about
* Kotlin/Native memory management. * Kotlin/Native memory management.
* *
* This object provides a set of functions and properties that allows to tune garbage collector. * This object provides a set of functions and properties that allows to tune garbage collector.
@@ -9,14 +9,14 @@ package kotlin.native
/** /**
* Freezing API is deprecated since 1.7.20. * Freezing API is deprecated since 1.7.20.
* *
* See [NEW_MM.md#freezing-deprecation](https://github.com/JetBrains/kotlin/blob/master/kotlin-native/NEW_MM.md#freezing-deprecation) for details * See [documentation](https://kotlinlang.org/docs/native-migration-guide.html) for details
*/ */
// Note: when changing level of deprecation here, also change // Note: when changing level of deprecation here, also change
// * `freezing` mode handling in KonanConfig.kt // * `freezing` mode handling in KonanConfig.kt
// * frontend diagnostics in ErrorsNative.kt // * frontend diagnostics in ErrorsNative.kt
@SinceKotlin("1.7") @SinceKotlin("1.7")
@RequiresOptIn( @RequiresOptIn(
message = "Freezing API is deprecated since 1.7.20. See https://github.com/JetBrains/kotlin/blob/master/kotlin-native/NEW_MM.md#freezing-deprecation for details", message = "Freezing API is deprecated since 1.7.20. See https://kotlinlang.org/docs/native-migration-guide.html for details",
level = RequiresOptIn.Level.WARNING, level = RequiresOptIn.Level.WARNING,
) )
@Target( @Target(
@@ -23,14 +23,14 @@ public expect annotation class CName(val externName: String = "", val shortName:
/** /**
* Freezing API is deprecated since 1.7.20. * Freezing API is deprecated since 1.7.20.
* *
* See [NEW_MM.md#freezing-deprecation](https://github.com/JetBrains/kotlin/blob/master/kotlin-native/NEW_MM.md#freezing-deprecation) for details * See [documentation](https://kotlinlang.org/docs/native-migration-guide.html) for details
*/ */
// Note: when changing level of deprecation here, also change // Note: when changing level of deprecation here, also change
// * `freezing` mode handling in KonanConfig.kt // * `freezing` mode handling in KonanConfig.kt
// * frontend diagnostics in ErrorsNative.kt // * frontend diagnostics in ErrorsNative.kt
@SinceKotlin("1.7") @SinceKotlin("1.7")
@RequiresOptIn( @RequiresOptIn(
message = "Freezing API is deprecated since 1.7.20. See https://github.com/JetBrains/kotlin/blob/master/kotlin-native/NEW_MM.md#freezing-deprecation for details", message = "Freezing API is deprecated since 1.7.20. See https://kotlinlang.org/docs/native-migration-guide.html for details",
level = RequiresOptIn.Level.WARNING, level = RequiresOptIn.Level.WARNING,
) )
@Target( @Target(
@@ -31,7 +31,7 @@ public expect annotation class ThreadLocal()
* *
* PLEASE NOTE THAT THIS ANNOTATION MAY GO AWAY IN UPCOMING RELEASES. * PLEASE NOTE THAT THIS ANNOTATION MAY GO AWAY IN UPCOMING RELEASES.
* *
* Since 1.7.20 usage of this annotation is deprecated. See https://github.com/JetBrains/kotlin/blob/master/kotlin-native/NEW_MM.md#freezing-deprecation for details. * Since 1.7.20 usage of this annotation is deprecated. See https://kotlinlang.org/docs/native-migration-guide.html for details.
*/ */
@Target(AnnotationTarget.PROPERTY) @Target(AnnotationTarget.PROPERTY)
@Retention(AnnotationRetention.BINARY) @Retention(AnnotationRetention.BINARY)