Skip to content

Suppress warnings#822

Merged
armanbilge merged 10 commits into
typelevel:masterfrom
loladenney:suppress-warnings
May 22, 2026
Merged

Suppress warnings#822
armanbilge merged 10 commits into
typelevel:masterfrom
loladenney:suppress-warnings

Conversation

@loladenney
Copy link
Copy Markdown
Contributor

Warning in HashMap for catsCollectionsUnorderedTraverseForHashMap, it was forcing the compiler to generate an evidence parameter of type Hash[K], but this evidence isn't needed or used, causing an unused parameter warning. The fix was to manually de-sugar and mark the evidence parameter with @unused

This is only a suppression for the issue described in #821, which would address the warning directly.

I plan to silence more warnings in this pr, this is only for a single warning.

armanbilge
armanbilge previously approved these changes May 20, 2026
Comment thread tests/src/test/scala/cats/collections/DequeueSuite.scala Outdated
Comment thread build.sbt

ThisBuild / crossScalaVersions := Seq(Scala3, Scala213, Scala212)
ThisBuild / tlVersionIntroduced := Map("3" -> "0.9.3")
ThisBuild / tlFatalWarnings := false
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.

🎉

Copy link
Copy Markdown
Member

@armanbilge armanbilge left a comment

Choose a reason for hiding this comment

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

nice job, so great to have fatal warnings enabled. thanks!

Comment on lines -133 to +134
property("toList/toStream consistency")(forAll { (q: Dequeue[Int]) =>
assertEquals(q.toList, q.to[Stream, Int].toList)
property("toList/toVector consistency")(forAll { (q: Dequeue[Int]) =>
assertEquals(q.toList, q.to[Vector, Int].toList)
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.

for posterity: this change is reasonable because what was being tested was not specific to Stream (or laziness). This is about testing the factory-based to method.

@armanbilge armanbilge merged commit d86ccf0 into typelevel:master May 22, 2026
14 checks passed
@loladenney loladenney deleted the suppress-warnings branch May 25, 2026 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants