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

Enable Scala 2 inliner and update dependencies #2054

Merged
merged 4 commits into from
Dec 21, 2023

Conversation

kyri-petrou
Copy link
Collaborator

Subbing in for Scala Steward who seems to be on holidays 🤖🌴 .

Also enabling Scala 2's inliner. I've only enabled inlining from the standard library, but I'm happy to enable it globally if we don't see an issue with it

@@ -104,9 +104,9 @@ private[caliban] trait StringParsers {
case _ => l1
}
// remove start lines that are only whitespaces
val l3 = l2.dropWhile("[ \t]*".r.replaceAllIn(_, "").isEmpty)
val l3 = l2.dropWhile("[ \t]*".r.replaceAllIn(_, "").isEmpty): @noinline
Copy link
Owner

Choose a reason for hiding this comment

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

Can you add a comment explaining why noinline?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Scala 2.12 (only) inlines the dropWhile method and a compiler error is raised because of it. I'll add that in

@kyri-petrou kyri-petrou merged commit ad88995 into series/2.x Dec 21, 2023
10 checks passed
@kyri-petrou kyri-petrou deleted the enable-inliner-and-update-deps branch December 21, 2023 01:38
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