Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-enable new ambiguity warning under 2.13 #10462

Merged
merged 1 commit into from Jul 22, 2023

Conversation

lrytz
Copy link
Member

@lrytz lrytz commented Jul 11, 2023

Include a quick fix.

follow-up for #10339

@scala-jenkins scala-jenkins added this to the 2.13.13 milestone Jul 11, 2023
@lrytz lrytz modified the milestones: 2.13.13, 2.13.12 Jul 11, 2023
val cat = if (currentRun.isScala3) WarningCategory.Scala3Migration else WarningCategory.Other
val fix = List(CodeAction("ambiguous reference", Some(w.msg), List(TextEdit(tree.pos.focusStart, w.fix))))
runReporting.warning(tree.pos, w.msg, cat, context.owner, fix)
})
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe the way to motivate something.foreach { w => block } syntax is to say, the lambda is a block, much like "anonymous pattern-matching function" is a block (of cases). For this syntax, it introduces a parameter. How slick! Or maybe, "it's like { case w => block } but you can omit the case. Hey!

@lrytz lrytz requested a review from SethTisue July 20, 2023 09:07
@SethTisue SethTisue added prio:hi high priority (used only by core team, only near release time) release-notes worth highlighting in next release notes labels Jul 20, 2023
@SethTisue SethTisue merged commit 2812948 into scala:2.13.x Jul 22, 2023
3 checks passed
@SethTisue SethTisue removed the prio:hi high priority (used only by core team, only near release time) label Jul 22, 2023
@SethTisue SethTisue removed the release-notes worth highlighting in next release notes label Aug 23, 2023
@SethTisue
Copy link
Member

@lrytz we don't need to release-note this... or do we?

@som-snytt
Copy link
Contributor

I was hoping to read an explanation. Oh, is this to warn without -Xsource:3? We should release-note that they should be using -Xsource:3. Also, is there any truth to the rumor that -X will be renamed -twitter?

@lrytz
Copy link
Member Author

lrytz commented Aug 24, 2023

The new warning has a very detailed message, so it probably doesn't need to be mentioned in the release notes.

ijuma added a commit to apache/kafka that referenced this pull request Sep 24, 2023
It offers a quickfix action for certain errors, includes a number of bug fixes and it
introduces a new warning by default (scala/scala#10462).

In addition to the scala version bump, we also fix the new compiler warnings and
bump the scalafmt version (the previous version failed with the new scala version).

Release notes: https://github.com/scala/scala/releases/tag/v2.13.12

Reviewers: Divij Vaidya <diviv@amazon.com>, Satish Duggana <satishd@apache.org>
rreddy-22 pushed a commit to rreddy-22/kafka-rreddy that referenced this pull request Oct 3, 2023
It offers a quickfix action for certain errors, includes a number of bug fixes and it
introduces a new warning by default (scala/scala#10462).

In addition to the scala version bump, we also fix the new compiler warnings and
bump the scalafmt version (the previous version failed with the new scala version).

Release notes: https://github.com/scala/scala/releases/tag/v2.13.12

Reviewers: Divij Vaidya <diviv@amazon.com>, Satish Duggana <satishd@apache.org>
k-wall pushed a commit to k-wall/kafka that referenced this pull request Nov 21, 2023
It offers a quickfix action for certain errors, includes a number of bug fixes and it
introduces a new warning by default (scala/scala#10462).

In addition to the scala version bump, we also fix the new compiler warnings and
bump the scalafmt version (the previous version failed with the new scala version).

Release notes: https://github.com/scala/scala/releases/tag/v2.13.12

Reviewers: Divij Vaidya <diviv@amazon.com>, Satish Duggana <satishd@apache.org>
AnatolyPopov pushed a commit to aiven/kafka that referenced this pull request Feb 16, 2024
It offers a quickfix action for certain errors, includes a number of bug fixes and it
introduces a new warning by default (scala/scala#10462).

In addition to the scala version bump, we also fix the new compiler warnings and
bump the scalafmt version (the previous version failed with the new scala version).

Release notes: https://github.com/scala/scala/releases/tag/v2.13.12

Reviewers: Divij Vaidya <diviv@amazon.com>, Satish Duggana <satishd@apache.org>
Cerchie pushed a commit to Cerchie/kafka that referenced this pull request Feb 22, 2024
It offers a quickfix action for certain errors, includes a number of bug fixes and it
introduces a new warning by default (scala/scala#10462).

In addition to the scala version bump, we also fix the new compiler warnings and
bump the scalafmt version (the previous version failed with the new scala version).

Release notes: https://github.com/scala/scala/releases/tag/v2.13.12

Reviewers: Divij Vaidya <diviv@amazon.com>, Satish Duggana <satishd@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants