Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Avoid crashes on missing positions #19250

Merged

Conversation

nicolasstucki
Copy link
Contributor

All positions should be set on these trees and symbols at this point. If one is missing it is due to a compiler bug. We default the position to 0 if there is a missing position to avoid crashing when calling methods on Position. To make it possible for us to fix these missing positions, we warn if there is a missing position when compiling with -Xcheck-macros.

All positions should be set on these trees and symbols at this point. If
one is missing it is due to a compiler bug. We default the position to 0
if there is a missing position to avoid crashing when calling methods on
Position. To make it possible for us to fix these missing positions, we
warn if there is a missing position when compiling with -Xcheck-macros.
@nicolasstucki nicolasstucki added this to the 3.4.0 milestone Dec 12, 2023
@nicolasstucki nicolasstucki self-assigned this Dec 12, 2023
@nicolasstucki nicolasstucki marked this pull request as ready for review December 12, 2023 12:32
@nicolasstucki nicolasstucki force-pushed the avoid-crashes-with-missing-positions branch from dcbf416 to 8d5a04c Compare December 12, 2023 14:07
@nicolasstucki nicolasstucki added the backport:nominated If we agree to backport this PR, replace this tag with "backport:accepted", otherwise delete it. label Dec 12, 2023
@nicolasstucki nicolasstucki merged commit c717427 into scala:main Dec 14, 2023
19 checks passed
@nicolasstucki nicolasstucki deleted the avoid-crashes-with-missing-positions branch December 14, 2023 08:12
WojciechMazur added a commit that referenced this pull request Jun 26, 2024
Backports #19250 to the LTS branch.

PR submitted by the release tooling.
[skip ci]
@WojciechMazur WojciechMazur removed the backport:nominated If we agree to backport this PR, replace this tag with "backport:accepted", otherwise delete it. label Nov 8, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants