Skip to content

Conversation

@mims-github
Copy link
Owner

No description provided.

Markus Sutter added 2 commits June 4, 2021 08:17
There are compile call paths relying on
meaningful toString impl. for error/warning
log messages. Therefor lets add toString, which is:
"concise but informative representation that is easy for a person to read."

Without this, e.g. users of https://github.com/davidB/scala-maven-plugin
get unsuitable compile problems like:
[Warn] dotty.tools.xsbt.PositionBridge@4fbdc20: match may not be exhaustive....

Example call path:
log:45, SbtLogger (sbt_inc)
log:47, Logger (sbt.util)
warn:43, Logger (sbt.util)
logWarning:159, LoggedReporter (sbt.internal.inc)
display:168, LoggedReporter (sbt.internal.inc)
log:142, LoggedReporter (sbt.internal.inc)
doReport:43, DelegatingReporter (dotty.tools.xsbt)
report:150, Reporter (dotty.tools.dotc.reporting)
issueWarning:32, report$ (dotty.tools.dotc)
warning:67, report$ (dotty.tools.dotc)
checkExhaustivity:847, SpaceEngine (dotty.tools.dotc.transform.patmat)
....
@cb-mims
Copy link

cb-mims bot commented Jul 9, 2021

  • MS task

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