Skip to content

Store suspended warnings per compilation unit#9449

Merged
dwijnand merged 2 commits intoscala:2.12.xfrom
lrytz:t12308
Mar 3, 2021
Merged

Store suspended warnings per compilation unit#9449
dwijnand merged 2 commits intoscala:2.12.xfrom
lrytz:t12308

Conversation

@lrytz
Copy link
Member

@lrytz lrytz commented Jan 22, 2021

Store suspended warnings per compilation unit and report them
in typerPhase.apply(unit) instead of typerPhase.run - the latter
is not invoked when using the presentation compiler.

Fixes scala/bug#12308

@lrytz lrytz requested a review from dwijnand January 22, 2021 16:00
@scala-jenkins scala-jenkins added this to the 2.12.14 milestone Jan 22, 2021
@SethTisue
Copy link
Member

@lrytz could there be test coverage? the regression this fixes is pretty significant

@SethTisue SethTisue added the release-notes worth highlighting in next release notes label Jan 22, 2021
@lrytz
Copy link
Member Author

lrytz commented Jan 25, 2021

Yes I'll come up with a test.

@lrytz

This comment has been minimized.

@lrytz lrytz marked this pull request as draft January 25, 2021 15:31
Store suspended warnings per compilation unit and report them
in `typerPhase.apply(unit)` instead of `typerPhase.run` - the latter
is not invoked when using the presentation compiler.
@lrytz lrytz marked this pull request as ready for review March 1, 2021 15:55
Index suspended warnings by SourceFile.

Test case for issue 12308.
@dwijnand dwijnand removed the release-notes worth highlighting in next release notes label Mar 3, 2021
@dwijnand dwijnand merged commit 48c9a39 into scala:2.12.x Mar 3, 2021
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.

4 participants