From c713e8c064f489a9b8596500b7c6608f4f43a2ac Mon Sep 17 00:00:00 2001 From: Nicolas Stucki Date: Sun, 22 Mar 2020 08:37:22 +0100 Subject: [PATCH] Update reference compiler Workaround issue #8371 --- .../scala/internal/quoted/CompileTime.scala | 48 ------------------- .../scala/internal/quoted/CompileTime.scala | 0 project/Build.scala | 2 +- 3 files changed, 1 insertion(+), 49 deletions(-) delete mode 100644 library/src-non-bootstrapped/scala/internal/quoted/CompileTime.scala rename library/{src-bootstrapped => src}/scala/internal/quoted/CompileTime.scala (100%) diff --git a/library/src-non-bootstrapped/scala/internal/quoted/CompileTime.scala b/library/src-non-bootstrapped/scala/internal/quoted/CompileTime.scala deleted file mode 100644 index bd96f1f8f734..000000000000 --- a/library/src-non-bootstrapped/scala/internal/quoted/CompileTime.scala +++ /dev/null @@ -1,48 +0,0 @@ -package scala.internal.quoted - -import scala.annotation.{Annotation, compileTimeOnly} -import scala.quoted._ - -@compileTimeOnly("Illegal reference to `scala.internal.quoted.CompileTime`") -object CompileTime { - - /** A term quote is desugared by the compiler into a call to this method */ - @compileTimeOnly("Illegal reference to `scala.internal.quoted.CompileTime.exprQuote`") - def exprQuote[T](x: T): QuoteContext ?=> Expr[T] = ??? - - /** A term splice is desugared by the compiler into a call to this method */ - @compileTimeOnly("Illegal reference to `scala.internal.quoted.CompileTime.exprSplice`") - def exprSplice[T, QCtx <: QuoteContext](x: QCtx ?=> Expr[T]): T = ??? - - /** A type quote is desugared by the compiler into a call to this method */ - @compileTimeOnly("Illegal reference to `scala.internal.quoted.CompileTime.typeQuote`") - def typeQuote[T <: AnyKind]: Type[T] = ??? - - /** A splice in a quoted pattern is desugared by the compiler into a call to this method */ - @compileTimeOnly("Illegal reference to `scala.internal.quoted.CompileTime.patternHole`") - def patternHole[T]: T = ??? - - /** A splice of a name in a quoted pattern is desugared by wrapping getting this annotation */ - @compileTimeOnly("Illegal reference to `scala.internal.quoted.CompileTime.patternBindHole`") - class patternBindHole extends Annotation - - /** A splice of a name in a quoted pattern is that marks the definition of a type splice */ - @compileTimeOnly("Illegal reference to `scala.internal.quoted.CompileTime.patternType`") - class patternType extends Annotation - - /** A type pattern that must be aproximated from above */ - @compileTimeOnly("Illegal reference to `scala.internal.quoted.CompileTime.fromAbove`") - class fromAbove extends Annotation - - /** Artifact of pickled type splices - * - * During quote reification a quote `'{ ... F[$t] ... }` will be transformed into - * `'{ @quoteTypeTag type T$1 = $t ... F[T$1] ... }` to have a tree for `$t`. - * This artifact is removed during quote unpickling. - * - * See ReifyQuotes.scala and PickledQuotes.scala - */ - @compileTimeOnly("Illegal reference to `scala.internal.quoted.CompileTime.quoteTypeTag`") - class quoteTypeTag extends Annotation - -} diff --git a/library/src-bootstrapped/scala/internal/quoted/CompileTime.scala b/library/src/scala/internal/quoted/CompileTime.scala similarity index 100% rename from library/src-bootstrapped/scala/internal/quoted/CompileTime.scala rename to library/src/scala/internal/quoted/CompileTime.scala diff --git a/project/Build.scala b/project/Build.scala index baf78da32460..818c2a326303 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -62,7 +62,7 @@ object MyScalaJSPlugin extends AutoPlugin { } object Build { - val referenceVersion = "0.23.0-RC1" + val referenceVersion = "0.24.0-bin-20200321-4df9b6f-NIGHTLY" val baseVersion = "0.24.0" val baseSbtDottyVersion = "0.4.0"