From b5a98e7aa28e2dd51221948b9ec393be278a7c20 Mon Sep 17 00:00:00 2001 From: Jamie Thompson Date: Tue, 15 Mar 2022 16:07:42 +0100 Subject: [PATCH] remove 3.2 language imports --- .../runtime/stdLibPatches/language.scala | 20 +++---------------- tests/pos/source-import-3-2-migration.scala | 1 - tests/pos/source-import-3-2.scala | 1 - 3 files changed, 3 insertions(+), 19 deletions(-) delete mode 100644 tests/pos/source-import-3-2-migration.scala delete mode 100644 tests/pos/source-import-3-2.scala diff --git a/library/src/scala/runtime/stdLibPatches/language.scala b/library/src/scala/runtime/stdLibPatches/language.scala index fde66a6aaf2b..7c8c116a106e 100644 --- a/library/src/scala/runtime/stdLibPatches/language.scala +++ b/library/src/scala/runtime/stdLibPatches/language.scala @@ -162,33 +162,19 @@ object language: @compileTimeOnly("`3.1` can only be used at compile time in import statements") object `3.1` +/* This can be added when we go to 3.2 /** Set source version to 3.2-migration. * - * @see [[https://docs.scala-lang.org/scala3/guides/migration/compatibility-intro.html]] + * @see [[https://scalacenter.github.io/scala-3-migration-guide/docs/scala-3-migration-mode]] */ @compileTimeOnly("`3.2-migration` can only be used at compile time in import statements") object `3.2-migration` /** Set source version to 3.2 * - * @see [[https://docs.scala-lang.org/scala3/guides/migration/compatibility-intro.html]] + * @see [[https://scalacenter.github.io/scala-3-migration-guide/docs/scala-3-migration-mode]] */ @compileTimeOnly("`3.2` can only be used at compile time in import statements") object `3.2` - -/* This can be added when we go to 3.3 - /** Set source version to 3.3-migration. - * - * @see [[https://docs.scala-lang.org/scala3/guides/migration/compatibility-intro.html]] - */ - @compileTimeOnly("`3.3-migration` can only be used at compile time in import statements") - object `3.3-migration` - - /** Set source version to 3.3 - * - * @see [[https://docs.scala-lang.org/scala3/guides/migration/compatibility-intro.html]] - */ - @compileTimeOnly("`3.3` can only be used at compile time in import statements") - object `3.3` */ end language diff --git a/tests/pos/source-import-3-2-migration.scala b/tests/pos/source-import-3-2-migration.scala deleted file mode 100644 index 4d5e0957298e..000000000000 --- a/tests/pos/source-import-3-2-migration.scala +++ /dev/null @@ -1 +0,0 @@ -import language.`3.2-migration` diff --git a/tests/pos/source-import-3-2.scala b/tests/pos/source-import-3-2.scala deleted file mode 100644 index 3bdf8d028865..000000000000 --- a/tests/pos/source-import-3-2.scala +++ /dev/null @@ -1 +0,0 @@ -import language.`3.2`