From 05eb7f7ae514d1db5e0bece30d63cf5a30164ee8 Mon Sep 17 00:00:00 2001 From: Nicolas Stucki Date: Wed, 6 Mar 2024 15:41:27 +0100 Subject: [PATCH] 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. --- compiler/src/dotty/tools/dotc/config/ScalaSettings.scala | 2 -- compiler/src/dotty/tools/dotc/inlines/Inlines.scala | 1 - 2 files changed, 3 deletions(-) diff --git a/compiler/src/dotty/tools/dotc/config/ScalaSettings.scala b/compiler/src/dotty/tools/dotc/config/ScalaSettings.scala index 3dafedd8e2e0..07efc18a772b 100644 --- a/compiler/src/dotty/tools/dotc/config/ScalaSettings.scala +++ b/compiler/src/dotty/tools/dotc/config/ScalaSettings.scala @@ -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 diff --git a/compiler/src/dotty/tools/dotc/inlines/Inlines.scala b/compiler/src/dotty/tools/dotc/inlines/Inlines.scala index a97917e28771..866cf771d1e6 100644 --- a/compiler/src/dotty/tools/dotc/inlines/Inlines.scala +++ b/compiler/src/dotty/tools/dotc/inlines/Inlines.scala @@ -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.