Skip to content

Stop capturing a Context for optimizer warnings#26236

Open
SolalPirelli wants to merge 9 commits into
scala:mainfrom
dotty-staging:solal/optwarning
Open

Stop capturing a Context for optimizer warnings#26236
SolalPirelli wants to merge 9 commits into
scala:mainfrom
dotty-staging:solal/optwarning

Conversation

@SolalPirelli

@SolalPirelli SolalPirelli commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Depends on #26174

Part of #25218

Review commit by commit

Removes the last thing that captured a Context.

This PR:

  • forwards optimizer warnings via a simple function sink
  • deletes PPFA, which is now unused
  • cleans up the custom context and reporter abstractions that FileWriters used, while I was at it

How much have you relied on LLM-based tools in this contribution?

Not at all

How was the solution tested?

Covered by existing tests (this is a refactoring)

@SolalPirelli SolalPirelli marked this pull request as ready for review June 11, 2026 07:25
sub-cases-reachability.scala
tailrec.scala
traitParams.scala
optimizer-warnings.scala

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

the positions are wrong when SCoverage is on, I'll create an issue to investigate further, but for now I think "coverage + optimizer" isn't really a meaningful scenario anyway

@SolalPirelli SolalPirelli requested a review from lrytz June 11, 2026 08:48
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.

1 participant