Skip to content

Commit c35a9e5

Browse files
committed
pass BootstrappedOnlyCompilationTests
1 parent 41718b7 commit c35a9e5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

compiler/src/dotty/tools/dotc/core/tasty/experimental/CommentPickler.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ import dotty.tools.dotc.core.Contexts.Context
66
import dotty.tools.tasty.experimental.{CommentPickler => CommentPicklerImpl}
77
import dotty.tools.tasty.TastyBuffer.Addr
88

9-
class CommentPickler(pickler: TastyPickler, addrOfTree: tpd.Tree => Addr)(implicit ctx: Context)
9+
class CommentPickler(pickler: TastyPickler, addrOfTree: tpd.Tree => Addr)
1010
extends CommentPicklerImpl(pickler, addrOfTree)

compiler/src/dotty/tools/dotc/core/tasty/experimental/TastyPickler.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ import dotty.tools.dotc.core.Symbols.ClassSymbol
44

55
import dotty.tools.tasty.experimental.{TastyPickler => TastyPicklerImpl}
66

7-
class TastyPickler(rootCls: ClassSymbol) extends TastyPicklerImpl(DottyTasty)(rootCls)
7+
class TastyPickler(rootCls: ClassSymbol) extends TastyPicklerImpl[DottyTasty.type](DottyTasty)(rootCls)

tasty/src/dotty/tools/tasty/experimental/CommentPickler.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ import TastyBuffer.{Addr, NoAddr}
55

66
import java.nio.charset.Charset
77

8-
class CommentPickler[T <: Tasty](val pickler: TastyPickler[T], addrOfTree: pickler.tasty.tpd.Tree => Addr)(implicit ctx: pickler.tasty.Context) {
8+
class CommentPickler[T <: Tasty](val pickler: TastyPickler[T], addrOfTree: pickler.tasty.tpd.Tree => Addr) {
99
import pickler.tasty.{_, given}
1010
private val buf = new TastyBuffer(5000)
1111
pickler.newSection("Comments", buf)
1212

13-
def pickleComment(root: tpd.Tree): Unit = {
13+
def pickleComment(root: tpd.Tree)(implicit ctx: Context): Unit = {
1414
val docCtx = ctx.docCtx
1515
assert(docCtx.isDefined, "Trying to pickle comments, but there's no `docCtx`.")
1616
new Traverser(docCtx.get).traverse(root)

0 commit comments

Comments
 (0)