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

in -Wvalue-discard message, include type of discarded value #10092

Merged

Conversation

SethTisue
Copy link
Member

@SethTisue SethTisue commented Jul 28, 2022

inspired by the corresponding change to -Wnonunit-statement we asked @som-snytt for on #9893

@scala-jenkins scala-jenkins added this to the 2.13.10 milestone Jul 28, 2022
@SethTisue SethTisue requested a review from som-snytt July 28, 2022 00:21
@SethTisue SethTisue modified the milestones: 2.13.10, 2.13.9 Jul 28, 2022
Copy link
Contributor

@som-snytt som-snytt left a comment

Choose a reason for hiding this comment

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

Probably you're on your phone on the train, so your line width is about 60 chars.

It's interesting to complain about discarding 42, which not an interesting number. That is, we don't lose information by not consuming a singleton.

Thanks, enhancing the other message didn't occur to me. (Because of my laser focus, of course.)

@SethTisue SethTisue marked this pull request as ready for review July 28, 2022 01:06
@SethTisue SethTisue merged commit 52e7c0f into scala:2.13.x Jul 28, 2022
@SethTisue SethTisue deleted the include-type-in-value-discard-message branch July 28, 2022 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants