You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add an -Yimplicit-to-given flag for rewrites to easily test changes in the ecosystem (#22580)
The flag replaces every implicit keyword with a given or using, aside from
a few exceptions.
The added flag should be used in conjunction with `--rewrite`, adding
rewrite patches to the source code. This will omit implicit classes and
old-style implicit conversions, where a simple rewrite to `given` or
`using` might not be available. `using` keywords are also added to
converted previously-implicit-now-using parameter applications, but only
if both the method definition and application are in the same
compilation run (in other cases they would have to be added manually).
valYinstrument:Setting[Boolean] =BooleanSetting(ForkSetting, "Yinstrument", "Add instrumentation code that counts allocations and closure creations.")
466
466
valYinstrumentDefs:Setting[Boolean] =BooleanSetting(ForkSetting, "Yinstrument-defs", "Add instrumentation code that counts method calls; needs -Yinstrument to be set, too.")
467
+
valYimplicitToGiven:Setting[Boolean] =BooleanSetting(ForkSetting, "Yimplicit-to-given", "Allows to rewrite the implicit keywords to their scala-3 given counterparts. Does not adjust imports. Use in conjunction with --rewrite.")
467
468
468
469
// Deprecated: lifted from -Y to -X
469
470
@deprecated(message ="Lifted to -X, Scheduled for removal.", since ="3.5.0")
0 commit comments