Skip to content

Commit 05eb7f7

Browse files
committed
Remove -Yforce-inline-while-typing
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.
1 parent 7dc4d3d commit 05eb7f7

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

compiler/src/dotty/tools/dotc/config/ScalaSettings.scala

-2
Original file line numberDiff line numberDiff line change
@@ -435,8 +435,6 @@ private sealed trait YSettings:
435435
val Yinstrument: Setting[Boolean] = BooleanSetting("-Yinstrument", "Add instrumentation code that counts allocations and closure creations.")
436436
val YinstrumentDefs: Setting[Boolean] = BooleanSetting("-Yinstrument-defs", "Add instrumentation code that counts method calls; needs -Yinstrument to be set, too.")
437437

438-
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.")
439-
440438
val YdebugMacros: Setting[Boolean] = BooleanSetting("-Ydebug-macros", "Show debug info when quote pattern match fails")
441439

442440
// Pipeline compilation options

compiler/src/dotty/tools/dotc/inlines/Inlines.scala

-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ object Inlines:
8181
private def needsTransparentInlining(tree: Tree)(using Context): Boolean =
8282
tree.symbol.is(Transparent)
8383
|| ctx.mode.is(Mode.ForceInline)
84-
|| ctx.settings.YforceInlineWhileTyping.value
8584

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

0 commit comments

Comments
 (0)