Skip to content

Commit e9111e2

Browse files
authored
Merge pull request #7263 from dotty-staging/upgrade-scala-2.13.1
Upgrade to scala-library 2.13.1
2 parents 6abc977 + 09f014d commit e9111e2

File tree

5 files changed

+14
-17
lines changed

5 files changed

+14
-17
lines changed

.drone.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ steps:
2727

2828
- name: test
2929
pull: default
30-
image: lampepfl/dotty:2019-09-10
30+
image: lampepfl/dotty:2019-09-19
3131
depends_on: [ clone ]
3232
commands:
3333
- cp -R . /tmp/1/ && cd /tmp/1/
@@ -36,7 +36,7 @@ steps:
3636

3737
- name: test_bootstrapped
3838
pull: default
39-
image: lampepfl/dotty:2019-09-10
39+
image: lampepfl/dotty:2019-09-19
4040
depends_on: [ clone ]
4141
commands:
4242
- cp -R . /tmp/2/ && cd /tmp/2/
@@ -45,7 +45,7 @@ steps:
4545

4646
- name: community_build
4747
pull: default
48-
image: lampepfl/dotty:2019-09-10
48+
image: lampepfl/dotty:2019-09-19
4949
depends_on: [ clone ]
5050
commands:
5151
- cp -R . /tmp/3/ && cd /tmp/3/
@@ -55,7 +55,7 @@ steps:
5555

5656
- name: test_sbt
5757
pull: default
58-
image: lampepfl/dotty:2019-09-10
58+
image: lampepfl/dotty:2019-09-19
5959
depends_on: [ clone ]
6060
commands:
6161
- cp -R . /tmp/4/ && cd /tmp/4/
@@ -67,7 +67,7 @@ steps:
6767

6868
- name: test_java11
6969
pull: default
70-
image: lampepfl/dotty:2019-09-10
70+
image: lampepfl/dotty:2019-09-19
7171
depends_on: [ clone ]
7272
commands:
7373
- export PATH="/usr/lib/jvm/java-11-openjdk-amd64/bin:$PATH"
@@ -81,7 +81,7 @@ steps:
8181

8282
- name: documentation
8383
pull: default
84-
image: lampepfl/dotty:2019-09-10
84+
image: lampepfl/dotty:2019-09-19
8585
depends_on:
8686
- test
8787
- test_bootstrapped
@@ -100,7 +100,7 @@ steps:
100100

101101
- name: publish_nightly
102102
pull: default
103-
image: lampepfl/dotty:2019-09-10
103+
image: lampepfl/dotty:2019-09-19
104104
depends_on:
105105
- test
106106
- test_bootstrapped
@@ -127,7 +127,7 @@ steps:
127127

128128
- name: publish_release
129129
pull: default
130-
image: lampepfl/dotty:2019-09-10
130+
image: lampepfl/dotty:2019-09-19
131131
depends_on:
132132
- test
133133
- test_bootstrapped
@@ -170,7 +170,7 @@ steps:
170170

171171
- name: publish_sbt_release
172172
pull: default
173-
image: lampepfl/dotty:2019-09-10
173+
image: lampepfl/dotty:2019-09-19
174174
depends_on:
175175
- test
176176
- test_bootstrapped

compiler/src/dotty/tools/dotc/ast/Trees.scala

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -362,16 +362,13 @@ object Trees {
362362
val nameStart =
363363
if (point != span.start) point
364364
else {
365-
// Use an immutable ArraySeq to work around https://github.com/scala/bug/issues/11708
366-
val content = collection.immutable.ArraySeq.unsafeWrapArray(source.content())
367-
368365
// Point might be too far away from start to be recorded. In this case we fall back to scanning
369366
// forwards from the start offset for the name.
370367
// Note: This might be inaccurate since scanning might hit accidentally the same
371368
// name (e.g. in a comment) before finding the real definition.
372369
// To make this behavior more robust we'd have to change the trees for definitions to contain
373370
// a fully positioned Ident in place of a name.
374-
val idx = content.indexOfSlice(realName, point)
371+
val idx = source.content().indexOfSlice(realName, point)
375372
if (idx >= 0) idx
376373
else point // use `point` anyway. This is important if no source exists so scanning fails
377374
}

project/Build.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import java.io.File
22
import java.nio.file._
33

44
import Modes._
5-
import com.typesafe.sbt.pgp.PgpKeys
5+
import com.jsuereth.sbtpgp.PgpKeys
66
import sbt.Keys._
77
import sbt._
88
import complete.DefaultParsers._
@@ -77,8 +77,8 @@ object Build {
7777
* scala-library.
7878
*/
7979
def stdlibVersion(implicit mode: Mode): String = mode match {
80-
case NonBootstrapped => "2.13.0"
81-
case Bootstrapped => "2.13.0"
80+
case NonBootstrapped => "2.13.1"
81+
case Bootstrapped => "2.13.1"
8282
}
8383

8484
val dottyOrganization = "ch.epfl.lamp"

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.0.0-M8")
66

77
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.6")
88

9-
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.0.0-M2")
9+
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.0.0")
1010

1111
addSbtPlugin("org.xerial.sbt" % "sbt-pack" % "0.10.1")
1212

0 commit comments

Comments
 (0)