Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import com.typesafe.tools.mima.core._

val Scala213 = "2.13.18"
val Scala212 = "2.12.21"
val Scala3 = "3.3.7"
val Scala3 = "3.3.9"

ThisBuild / tlBaseVersion := "2.8"
ThisBuild / crossScalaVersions := Seq(Scala213, Scala212, Scala3)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package org.typelevel.log4cats.slf4j.internal
import cats.effect.*
import org.slf4j.{Logger as JLogger, MDC}
import org.typelevel.log4cats.*
import org.typelevel.scalaccompat.annotation.unused

private[slf4j] object Slf4jLoggerInternal {

Expand All @@ -34,7 +35,7 @@ private[slf4j] object Slf4jLoggerInternal {

final class Slf4jLogger[F[_]](
val logger: JLogger,
sync: Sync.Type,
@unused sync: Sync.Type,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Honestly, I don't like this workaround because it's clearly a scala3 compiler quirk. sync is by no means unused. I'll try to submit a minimal repro to the scala/scala3 tracker.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here it goes scala/scala3#27449.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, we've got a response that it's deliberate new behavior in scala3. So, we have no choice but to @unused.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🀷 I guess it calls into question whether the deprecated constructor isn't correct again.

defaultCtx: Map[String, String]
)(implicit
F: Sync[F]
Expand Down
Loading