Skip to content

Commit

Permalink
Remove -Yforce-inline-while-typing (scala#19889)
Browse files Browse the repository at this point in the history
This flag only existed to help the migration to 3.0.0 from preview
builds older than `3.0.0-M3`. This was only relevant for the 3.0.X
versions.
  • Loading branch information
nicolasstucki authored Mar 7, 2024
2 parents cf968a3 + 05eb7f7 commit 21cfb15
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions compiler/src/dotty/tools/dotc/config/ScalaSettings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,6 @@ private sealed trait YSettings:
val Yinstrument: Setting[Boolean] = BooleanSetting("-Yinstrument", "Add instrumentation code that counts allocations and closure creations.")
val YinstrumentDefs: Setting[Boolean] = BooleanSetting("-Yinstrument-defs", "Add instrumentation code that counts method calls; needs -Yinstrument to be set, too.")

val YforceInlineWhileTyping: Setting[Boolean] = BooleanSetting("-Yforce-inline-while-typing", "Make non-transparent inline methods inline when typing. Emulates the old inlining behavior of 3.0.0-M3.")

val YdebugMacros: Setting[Boolean] = BooleanSetting("-Ydebug-macros", "Show debug info when quote pattern match fails")

// Pipeline compilation options
Expand Down
1 change: 0 additions & 1 deletion compiler/src/dotty/tools/dotc/inlines/Inlines.scala
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ object Inlines:
private def needsTransparentInlining(tree: Tree)(using Context): Boolean =
tree.symbol.is(Transparent)
|| ctx.mode.is(Mode.ForceInline)
|| ctx.settings.YforceInlineWhileTyping.value

/** Try to inline a call to an inline method. Fail with error if the maximal
* inline depth is exceeded.
Expand Down

0 comments on commit 21cfb15

Please sign in to comment.