Skip to content

Commit 0aa6bd4

Browse files
committed
remove tasty escape hatch for 3.2.0-RC4
1 parent af56abc commit 0aa6bd4

2 files changed

Lines changed: 10 additions & 14 deletions

File tree

project/DottySupport.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import sbt.librarymanagement.{
1212
* Settings to support validation of TastyUnpickler against the release of dotty with the matching TASTy version
1313
*/
1414
object TastySupport {
15-
val supportedTASTyRelease = "3.2.0-RC4" // TASTy version 28.2-1
15+
val supportedTASTyRelease = "3.2.0" // TASTy version 28.2-0
1616
val scala3Compiler = "org.scala-lang" % "scala3-compiler_3" % supportedTASTyRelease
1717
val scala3Library = "org.scala-lang" % "scala3-library_3" % supportedTASTyRelease
1818

@@ -26,7 +26,7 @@ object TastySupport {
2626
* Dotty in .travis.yml.
2727
*/
2828
object DottySupport {
29-
val dottyVersion = "3.2.0-RC4"
29+
val dottyVersion = "3.2.0"
3030
val compileWithDotty: Boolean =
3131
Option(System.getProperty("scala.build.compileWithDotty")).map(_.toBoolean).getOrElse(false)
3232
lazy val commonSettings = Seq(

src/compiler/scala/tools/tasty/TastyHeaderUnpickler.scala

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,14 @@ class TastyHeaderUnpickler(reader: TastyReader) {
4444
start
4545
}
4646

47-
val validVersion = {
48-
val stdCheck = TastyFormat.isVersionCompatible(
49-
fileMajor = fileMajor,
50-
fileMinor = fileMinor,
51-
fileExperimental = fileExperimental,
52-
compilerMajor = MajorVersion,
53-
compilerMinor = MinorVersion,
54-
compilerExperimental = ExperimentalVersion
55-
)
56-
val fallback = fileMajor == 28 && fileMinor == 2 && fileExperimental == 1 // 3.2.0-RC1
57-
stdCheck || fallback
58-
}
47+
val validVersion = TastyFormat.isVersionCompatible(
48+
fileMajor = fileMajor,
49+
fileMinor = fileMinor,
50+
fileExperimental = fileExperimental,
51+
compilerMajor = MajorVersion,
52+
compilerMinor = MinorVersion,
53+
compilerExperimental = ExperimentalVersion
54+
)
5955

6056
check(validVersion, {
6157
val signature = signatureString(fileMajor, fileMinor, fileExperimental)

0 commit comments

Comments
 (0)