Skip to content

Improve message when -Xmax-inlines limit reached #13783

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

Merged
merged 1 commit into from
Oct 22, 2021

Conversation

nicolasstucki
Copy link
Contributor

Fixes #13044

@anatoliykmetyuk anatoliykmetyuk merged commit 5eb54a7 into scala:master Oct 22, 2021
@anatoliykmetyuk anatoliykmetyuk deleted the fix-#13044 branch October 22, 2021 12:57
@Kordyjan Kordyjan added this to the 3.1.2 milestone Aug 2, 2023
odersky added a commit that referenced this pull request Jul 7, 2025
All of them would be achieved with implicit resolution, during which the
global state (ctx.base) would have stopInlining set to true, but the
corresponding error might not have been shown as part of that implicit
resolution - now we reset that value after failing the implicit, if it
was not already set before typing the implicit.

In a previous PR #13783, an issue
#13044 where a similar situation occurred was fixed by adding a check
for a not inlined inline method call in erasure, and reporting the error
there. For #i22423, this check was not early enough, leading to a crash
in the same phase for symbols using specialErasure. Adding an additional
check there would not be enough, as this particular minimisation also
fails post-inlining Ychecks. Even outside of that, I also believe it's
better to fail this early anyway, and also allow implicit resolution to
try to pick another option if we each the mainline limit in another
option.

Fixes #22423
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.

given instance is declared as erased, but is in fact used
3 participants