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

Backport "Avoid diagnostic message forcing crashing the compiler" to LTS #20803

Merged
merged 3 commits into from
Jun 26, 2024

Conversation

WojciechMazur
Copy link
Contributor

Backports #19113 to the LTS branch.

PR submitted by the release tooling.
[skip ci]

Because HideNonSensicalMessages looks at hasErrors, we need to narrow
the faking to just the isNonSensical call

[Cherry-picked 4fb8e7c]
We can switch to a more straightforward hasErrors check in isHidden, but
then we need to bump the errorCount before calling doReport, as doReport
will then, necessarily, force the message.

For reference, the way I test this manually is by:
  1. In ignoredConvertibleImplicits, changing back to `viewExists(imp, fail.expectedType)`
  2. In adapt1, removing the `dummyTreeOfType.unapply(tree).isEmpty` guard
  3. Compiling tests/neg/i18650.scala

Also, while I'm here, instruct on the presence of
-Yno-enrich-error-messages, like we do for -Yno-decode-stacktraces.

[Cherry-picked 31165f2]
Base automatically changed from lts-19182 to lts-3.3 June 26, 2024 09:24
@WojciechMazur
Copy link
Contributor Author

No regressions detected in the community build up to lts-19356.

Reference

@WojciechMazur WojciechMazur merged commit 912aa20 into lts-3.3 Jun 26, 2024
19 checks passed
@WojciechMazur WojciechMazur deleted the lts-19113 branch June 26, 2024 09:24
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