Skip to content

Commit 60fa07a

Browse files
SethTisuesom-snytt
authored andcommitted
standardize on -Vprint:... (still support -Xprint:... as alias)
1 parent 0a4b6ec commit 60fa07a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+64
-64
lines changed

compiler/src/dotty/tools/dotc/Run.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ extends ImplicitRunInfo, ConstraintRunInfo, cc.CaptureRunInfo {
367367
profiler.onPhase(phase):
368368
try units = phase.runOn(units)
369369
catch case _: InterruptedException => cancelInterrupted()
370-
if (ctx.settings.Xprint.value.containsPhase(phase))
370+
if (ctx.settings.Vprint.value.containsPhase(phase))
371371
for (unit <- units)
372372
def printCtx(unit: CompilationUnit) = phase.printingContext(
373373
ctx.fresh.setPhase(phase.next).setCompilationUnit(unit))

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ trait CliCommand:
3131
|<phases> means one or a comma-separated list of:
3232
| - (partial) phase names with an optional "+" suffix to include the next phase
3333
| - the string "all"
34-
| example: -Xprint:all prints all phases.
35-
| example: -Xprint:typer,mixin prints the typer and mixin phases.
34+
| example: -Vprint:all prints all phases.
35+
| example: -Vprint:typer,mixin prints the typer and mixin phases.
3636
| example: -Ylog:erasure+ logs the erasure phase and the phase after the erasure phase.
3737
| This is useful because during the tree transform of phase X, we often
3838
| already are in phase X + 1.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ private sealed trait PluginSettings:
144144
private sealed trait VerboseSettings:
145145
self: SettingGroup =>
146146
val Vhelp: Setting[Boolean] = BooleanSetting(VerboseSetting, "V", "Print a synopsis of verbose options.")
147-
val Xprint: Setting[List[String]] = PhasesSetting(VerboseSetting, "Vprint", "Print out program after", aliases = List("-Xprint"))
147+
val Vprint: Setting[List[String]] = PhasesSetting(VerboseSetting, "Vprint", "Print out program after", aliases = List("-Xprint"))
148148
val XshowPhases: Setting[Boolean] = BooleanSetting(VerboseSetting, "Vphases", "List compiler phases.", aliases = List("-Xshow-phases"))
149149

150150
val Vprofile: Setting[Boolean] = BooleanSetting(VerboseSetting, "Vprofile", "Show metrics about sources and internal representations to estimate compile-time complexity.")

compiler/src/dotty/tools/dotc/core/Phases.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ object Phases {
314314
* instance, it is possible to print trees after a given phase using:
315315
*
316316
* ```bash
317-
* $ ./bin/scalac -Xprint:<phaseNameHere> sourceFile.scala
317+
* $ ./bin/scalac -Vprint:<phaseNameHere> sourceFile.scala
318318
* ```
319319
*/
320320
def phaseName: String

compiler/src/dotty/tools/dotc/transform/Recheck.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,10 @@ abstract class Recheck extends Phase, SymTransformer:
183183

184184
/** If true, remember the new types of nodes in this compilation unit
185185
* as an attachment in the unit's tpdTree node. By default, this is
186-
* enabled when -Xprint:cc is set. Can be overridden.
186+
* enabled when -Vprint:cc is set. Can be overridden.
187187
*/
188188
def keepNuTypes(using Context): Boolean =
189-
ctx.settings.Xprint.value.containsPhase(thisPhase)
189+
ctx.settings.Vprint.value.containsPhase(thisPhase)
190190

191191
def resetNuTypes()(using Context): Unit =
192192
nuTypes.clear(resetToInitial = false)

compiler/test/dotty/tools/dotc/printing/PrintingTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class PrintingTest {
2727
def options(phase: String, flags: List[String]) =
2828
val outDir = ParallelTesting.defaultOutputDir + "printing" + File.pathSeparator
2929
File(outDir).mkdirs()
30-
List(s"-Xprint:$phase", "-color:never", "-nowarn", "-d", outDir, "-classpath", TestConfiguration.basicClasspath) ::: flags
30+
List(s"-Vprint:$phase", "-color:never", "-nowarn", "-d", outDir, "-classpath", TestConfiguration.basicClasspath) ::: flags
3131

3232
private def compileFile(path: JPath, phase: String): Boolean = {
3333
val baseFilePath = path.toString.stripSuffix(".scala")

compiler/test/dotty/tools/dotc/semanticdb/SemanticdbTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ class SemanticdbTests:
138138
"-feature",
139139
"-deprecation",
140140
// "-Ydebug-flags",
141-
// "-Xprint:extractSemanticDB",
141+
// "-Vprint:extractSemanticDB",
142142
"-sourceroot", expectSrc.toString,
143143
"-classpath", target.toString,
144144
"-Xignore-scala2-macros",

compiler/test/dotty/tools/repl/ReplCompilerTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ object ReplCompilerTests:
533533

534534
end ReplCompilerTests
535535

536-
class ReplXPrintTyperTests extends ReplTest(ReplTest.defaultOptions :+ "-Xprint:typer"):
536+
class ReplXPrintTyperTests extends ReplTest(ReplTest.defaultOptions :+ "-Vprint:typer"):
537537
@Test def i9111 = initially {
538538
run("""|enum E {
539539
| case A

docs/_docs/contributing/debugging/ide-debugging.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ And concatenate the output into the classpath argument, which should already con
140140

141141
In the `args` you can add any additional compiler option you want.
142142

143-
For instance you can add `-Xprint:all` to print all the generated trees after each mega phase.
143+
For instance you can add `-Vprint:all` to print all the generated trees after each mega phase.
144144

145145
Run `scalac -help` to get an overview of the available compiler options.
146146

docs/_docs/contributing/debugging/inspection.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ Sometimes you may want to stop the compiler after a certain phase, for example t
6161
knock-on errors from occurring from a bug in an earlier phase. Use the flag
6262
`-Ystop-after:<phase-name>` to prevent any phases executing afterwards.
6363

64-
> e.g. `-Xprint:<phase>` where `phase` is a miniphase, will print after
64+
> e.g. `-Vprint:<phase>` where `phase` is a miniphase, will print after
6565
> the whole phase group is complete, which may be several miniphases after `phase`.
66-
> Instead you can use `-Ystop-after:<phase> -Xprint:<phase>` to stop
66+
> Instead you can use `-Ystop-after:<phase> -Vprint:<phase>` to stop
6767
> immediately after the miniphase and see the trees that you intended.
6868
6969
## Printing TASTy of a Class

docs/_docs/contributing/debugging/other-debugging.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,19 +72,19 @@ assertPositioned(tree.reporting(s"Tree is: $result"))
7272
To print out the trees you are compiling after the FrontEnd (scanner, parser, namer, typer) phases:
7373

7474
```shell
75-
scalac -Xprint:typer ../issues/Playground.scala
75+
scalac -Vprint:typer ../issues/Playground.scala
7676
```
7777

7878
To print out the trees after Frontend and CollectSuperCalls phases:
7979

8080
```shell
81-
scalac -Xprint:typer,collectSuperCalls ../issues/Playground.scala
81+
scalac -Vprint:typer,collectSuperCalls ../issues/Playground.scala
8282
```
8383

8484
To print out the trees after all phases:
8585

8686
```shell
87-
scalac -Xprint:all ../issues/Playground.scala
87+
scalac -Vprint:all ../issues/Playground.scala
8888
```
8989

9090
To find out the list of all the phases and their names, check out [this](https://github.com/scala/scala3/blob/10526a7d0aa8910729b6036ee51942e05b71abf6/compiler/src/dotty/tools/dotc/Compiler.scala#L34) line in `Compiler.scala`. Each `Phase` object has `phaseName` defined on it, this is the phase name.
@@ -154,7 +154,7 @@ And is to be used as:
154154
scalac -Yprint-pos ../issues/Playground.scala
155155
```
156156

157-
If used, all the trees output with `show` or via `-Xprint:typer` will also have positions attached to them, e.g.:
157+
If used, all the trees output with `show` or via `-Vprint:typer` will also have positions attached to them, e.g.:
158158

159159
```scala
160160
package <empty>@<Playground.scala:1> {
@@ -182,7 +182,7 @@ package <empty>@<Playground.scala:1> {
182182
Every [Positioned](https://github.com/scala/scala3/blob/10526a7d0aa8910729b6036ee51942e05b71abf6/compiler/src/dotty/tools/dotc/ast/Positioned.scala) (a parent class of `Tree`) object has a `uniqueId` field. It is an integer that is unique for that tree and doesn't change from compile run to compile run. You can output these IDs from any printer (such as the ones used by `.show` and `-Xprint`) via `-Yshow-tree-ids` flag, e.g.:
183183

184184
```shell
185-
scalac -Xprint:typer -Yshow-tree-ids ../issues/Playground.scala
185+
scalac -Vprint:typer -Yshow-tree-ids ../issues/Playground.scala
186186
```
187187

188188
Gives:

docs/_docs/contributing/issues/cause.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ As described in the [compiler lifecycle](../architecture/lifecycle.md#phases-2),
1818
each phase transforms the trees and types that represent your code in a certain
1919
way.
2020

21-
To print the code as it is transformed through the compiler, use the compiler flag `-Xprint:all`.
21+
To print the code as it is transformed through the compiler, use the compiler flag `-Vprint:all`.
2222
After each phase group is completed, you will see the resulting trees representing the code.
2323

24-
> It is recommended to test `-Xprint:all` on a single, small file, otherwise a lot of unnecessary
24+
> It is recommended to test `-Vprint:all` on a single, small file, otherwise a lot of unnecessary
2525
> output will be generated.
2626
2727
### Trace a Tree Creation Site
@@ -31,7 +31,7 @@ your search to the code of that phase. For example if you found a problematic tr
3131
`posttyper`, the problem most likely appears in the code of [PostTyper]. We can trace the exact point
3232
the tree was generated by looking for its unique ID, and then generating a stack trace at its creation:
3333

34-
1. Run the compiler with `-Xprint:posttyper` and `-Yshow-tree-ids` flags.
34+
1. Run the compiler with `-Vprint:posttyper` and `-Yshow-tree-ids` flags.
3535
This will only print the trees of the `posttyper` phase. This time you should see the tree
3636
in question be printed alongside its ID. You'll see something like `println#223("Hello World"#37)`.
3737
2. Copy the ID of the desired tree.
@@ -43,7 +43,7 @@ Do not use a conditional breakpoint, the time overhead is very significant for a
4343

4444
### Enhanced Tree Printing
4545

46-
As seen above `-Xprint:<phase>` can be enhanced with further configuration flags, found in
46+
As seen above `-Vprint:<phase>` can be enhanced with further configuration flags, found in
4747
[ScalaSettings]. For example, you can additionally print the type of a tree with `-Xprint-types`.
4848

4949
## Increasing Logging Output

docs/_docs/contributing/issues/reproduce.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ $ scalac <OPTIONS> <FILE>
3939

4040
Here are some useful debugging `<OPTIONS>`:
4141

42-
* `-Xprint:PHASE1,PHASE2,...` or `-Xprint:all`: prints the `AST` after each
42+
* `-Vprint:PHASE1,PHASE2,...` or `-Vprint:all`: prints the `AST` after each
4343
specified phase. Phase names can be found by examining the
44-
`dotty.tools.dotc.transform.*` classes for their `phaseName` field e.g., `-Xprint:erasure`.
44+
`dotty.tools.dotc.transform.*` classes for their `phaseName` field e.g., `-Vprint:erasure`.
4545
You can discover all phases in the `dotty.tools.dotc.Compiler` class
4646
* `-Ylog:PHASE1,PHASE2,...` or `-Ylog:all`: enables `ctx.log("")` logging for
4747
the specified phase.
@@ -142,7 +142,7 @@ $ (rm -rv out || true) && mkdir out # clean up compiler output, create `out` dir
142142
143143
scalac # Invoke the compiler task defined by the Dotty sbt project
144144
-d $here/out # All the artefacts go to the `out` folder created earlier
145-
# -Xprint:typer # Useful debug flags, commented out and ready for quick usage. Should you need one, you can quickly access it by uncommenting it.
145+
# -Vprint:typer # Useful debug flags, commented out and ready for quick usage. Should you need one, you can quickly access it by uncommenting it.
146146
# -Ydebug-error
147147
# -Yprint-debug
148148
# -Yprint-debug-owners

docs/_docs/reference/experimental/cc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ upper bound: `type Cap^ >: {cudaMalloc, cudaFree}`.
815815

816816
The following options are relevant for capture checking.
817817

818-
- **-Xprint:cc** Prints the program with capturing types as inferred by capture checking.
818+
- **-Vprint:cc** Prints the program with capturing types as inferred by capture checking.
819819
- **-Ycc-debug** Gives more detailed, implementation-oriented information about capture checking, as described in the next section.
820820

821821
The implementation supporting capture checking with these options is currently in branch `cc-experiment` on dotty.epfl.ch.

docs/_spec/TODOreference/experimental/cc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ TBD
655655
The following options are relevant for capture checking.
656656

657657
- **-Ycc** Enables capture checking.
658-
- **-Xprint:cc** Prints the program with capturing types as inferred by capture checking.
658+
- **-Vprint:cc** Prints the program with capturing types as inferred by capture checking.
659659
- **-Ycc-debug** Gives more detailed, implementation-oriented information about capture checking, as described in the next section.
660660

661661
The implementation supporting capture checking with these options is currently in branch `cc-experiment` on dotty.epfl.ch.

project/scripts/options

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
-Xprint:frontend -Ylog:frontend
1+
-Vprint:frontend -Ylog:frontend
22
-Ycheck:all

sbt-test/scala2-compat/i13332/build.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ lazy val app = project.in(file("app"))
1010
.dependsOn(lib)
1111
.settings(
1212
scalaVersion := scala3Version,
13-
scalacOptions += "-Xprint:inlining"
14-
)
13+
scalacOptions += "-Vprint:inlining"
14+
)

sbt-test/tasty-compat/add-param-unroll/build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ lazy val c = project.in(file("c"))
2929
.settings(commonSettings)
3030
.settings(printSettings)
3131
.settings(
32-
// scalacOptions ++= Seq("-from-tasty", "-Ycheck:readTasty", "-Xfatal-warnings", "-Xprint:readTasty", "-Xprint-types"),
32+
// scalacOptions ++= Seq("-from-tasty", "-Ycheck:readTasty", "-Xfatal-warnings", "-Vprint:readTasty", "-Xprint-types"),
3333
// Compile / sources := Seq(new java.io.File("c-input/B.tasty")),
3434
Compile / unmanagedClasspath += (ThisBuild / baseDirectory).value / "c-input",
3535
Compile / classDirectory := (ThisBuild / baseDirectory).value / "c-output"

tests/disabled/partest/run/delambdafy_t6028.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import java.io.{Console => _, _}
33

44
object Test extends DirectTest {
55

6-
override def extraSettings: String = "-usejavacp -Ydelambdafy:method -Xprint:lambdalift -d " + testOutput.path
6+
override def extraSettings: String = "-usejavacp -Ydelambdafy:method -Vprint:lambdalift -d " + testOutput.path
77

88
override def code = """class T(classParam: Int) {
99
| val field: Int = 0

tests/disabled/partest/run/delambdafy_t6555.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import java.io.{Console => _, _}
33

44
object Test extends DirectTest {
55

6-
override def extraSettings: String = "-usejavacp -Xprint:specialize -Ydelambdafy:method -d " + testOutput.path
6+
override def extraSettings: String = "-usejavacp -Vprint:specialize -Ydelambdafy:method -d " + testOutput.path
77

88
override def code = "class Foo { val f = (param: Int) => param } "
99

tests/disabled/partest/run/delambdafy_uncurry_byname_inline.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import java.io.{Console => _, _}
33

44
object Test extends DirectTest {
55

6-
override def extraSettings: String = "-usejavacp -Xprint:uncurry -Ydelambdafy:inline -d " + testOutput.path
6+
override def extraSettings: String = "-usejavacp -Vprint:uncurry -Ydelambdafy:inline -d " + testOutput.path
77

88
override def code = """class Foo {
99
| def bar(x: => Int) = x

tests/disabled/partest/run/delambdafy_uncurry_byname_method.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import java.io.{Console => _, _}
33

44
object Test extends DirectTest {
55

6-
override def extraSettings: String = "-usejavacp -Xprint:uncurry -Ydelambdafy:method -Ystop-after:uncurry -d " + testOutput.path
6+
override def extraSettings: String = "-usejavacp -Vprint:uncurry -Ydelambdafy:method -Ystop-after:uncurry -d " + testOutput.path
77

88
override def code = """class Foo {
99
| def bar(x: => Int) = x

tests/disabled/partest/run/delambdafy_uncurry_inline.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import java.io.{Console => _, _}
33

44
object Test extends DirectTest {
55

6-
override def extraSettings: String = "-usejavacp -Xprint:uncurry -Ydelambdafy:inline -d " + testOutput.path
6+
override def extraSettings: String = "-usejavacp -Vprint:uncurry -Ydelambdafy:inline -d " + testOutput.path
77

88
override def code = """class Foo {
99
| def bar = {

tests/disabled/partest/run/delambdafy_uncurry_method.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import java.io.{Console => _, _}
33

44
object Test extends DirectTest {
55

6-
override def extraSettings: String = "-usejavacp -Xprint:uncurry -Ydelambdafy:method -Ystop-after:uncurry -d " + testOutput.path
6+
override def extraSettings: String = "-usejavacp -Vprint:uncurry -Ydelambdafy:method -Ystop-after:uncurry -d " + testOutput.path
77

88
override def code = """class Foo {
99
| def bar = {

tests/disabled/partest/run/dynamic-applyDynamic.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import scala.tools.partest.DirectTest
33
object Test extends DirectTest {
44

55
override def extraSettings: String =
6-
s"-usejavacp -Xprint-pos -Xprint:typer -Yrangepos -Ystop-after:typer -d ${testOutput.path}"
6+
s"-usejavacp -Xprint-pos -Vprint:typer -Yrangepos -Ystop-after:typer -d ${testOutput.path}"
77

88
override def code = """
99
object X {
@@ -23,4 +23,4 @@ object Test extends DirectTest {
2323
import language.dynamics
2424
class D extends Dynamic {
2525
def applyDynamic(name: String)(value: Any) = ???
26-
}
26+
}

tests/disabled/partest/run/dynamic-applyDynamicNamed.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import scala.tools.partest.DirectTest
33
object Test extends DirectTest {
44

55
override def extraSettings: String =
6-
s"-usejavacp -Xprint-pos -Xprint:typer -Yrangepos -Ystop-after:typer -d ${testOutput.path}"
6+
s"-usejavacp -Xprint-pos -Vprint:typer -Yrangepos -Ystop-after:typer -d ${testOutput.path}"
77

88
override def code = """
99
object X {

tests/disabled/partest/run/dynamic-selectDynamic.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import scala.tools.partest.DirectTest
33
object Test extends DirectTest {
44

55
override def extraSettings: String =
6-
s"-usejavacp -Xprint-pos -Xprint:typer -Yrangepos -Ystop-after:typer -d ${testOutput.path}"
6+
s"-usejavacp -Xprint-pos -Vprint:typer -Yrangepos -Ystop-after:typer -d ${testOutput.path}"
77

88
override def code = """
99
object X {

tests/disabled/partest/run/dynamic-updateDynamic.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import scala.tools.partest.DirectTest
33
object Test extends DirectTest {
44

55
override def extraSettings: String =
6-
s"-usejavacp -Xprint-pos -Xprint:typer -Yrangepos -Ystop-after:typer -d ${testOutput.path}"
6+
s"-usejavacp -Xprint-pos -Vprint:typer -Yrangepos -Ystop-after:typer -d ${testOutput.path}"
77

88
override def code = """
99
object X {

tests/disabled/partest/run/existential-rangepos.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import scala.tools.partest._
22

33
object Test extends DirectTest {
4-
override def extraSettings: String = "-usejavacp -Yrangepos -Xprint:patmat -Xprint-pos -d " + testOutput.path
4+
override def extraSettings: String = "-usejavacp -Yrangepos -Vprint:patmat -Xprint-pos -d " + testOutput.path
55

66
override def code = """
77
abstract class A[T] {

tests/disabled/partest/run/t4287inferredMethodTypes.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import scala.tools.partest.DirectTest
33
object Test extends DirectTest {
44

55
override def extraSettings: String =
6-
s"-usejavacp -Yinfer-argument-types -Xprint-pos -Xprint:typer -Yrangepos -Ystop-after:typer -d ${testOutput.path}"
6+
s"-usejavacp -Yinfer-argument-types -Xprint-pos -Vprint:typer -Yrangepos -Ystop-after:typer -d ${testOutput.path}"
77

88
override def code = """
99
class A(a: Int = A.a)
@@ -22,4 +22,4 @@ class B extends A {
2222
compile()
2323
}
2424
}
25-
}
25+
}

tests/disabled/partest/run/t5603.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import scala.tools.nsc.reporters.ConsoleReporter
77

88
object Test extends DirectTest {
99

10-
override def extraSettings: String = "-usejavacp -Xprint:parser -Ystop-after:parser -d " + testOutput.path
10+
override def extraSettings: String = "-usejavacp -Vprint:parser -Ystop-after:parser -d " + testOutput.path
1111

1212
override def code = """
1313
trait Greeting {

tests/disabled/partest/run/t5699.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ object Test extends DirectTest {
77
|public @interface MyAnnotation { String value(); }
88
""".stripMargin
99

10-
override def extraSettings: String = "-usejavacp -Ystop-after:typer -Xprint:parser"
10+
override def extraSettings: String = "-usejavacp -Ystop-after:typer -Vprint:parser"
1111

1212
override def show(): Unit = {
1313
// redirect err to out, for logging

tests/disabled/partest/run/t6028.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import java.io.{Console => _, _}
33

44
object Test extends DirectTest {
55

6-
override def extraSettings: String = "-usejavacp -Ydelambdafy:inline -Xprint:lambdalift -d " + testOutput.path
6+
override def extraSettings: String = "-usejavacp -Ydelambdafy:inline -Vprint:lambdalift -d " + testOutput.path
77

88
override def code = """class T(classParam: Int) {
99
| val field: Int = 0

tests/disabled/partest/run/t6288.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import java.io.{Console => _, _}
33

44
object Test extends DirectTest {
55

6-
override def extraSettings: String = "-usejavacp -Xprint:patmat -Xprint-pos -d " + testOutput.path
6+
override def extraSettings: String = "-usejavacp -Vprint:patmat -Xprint-pos -d " + testOutput.path
77

88
override def code =
99
"""

tests/disabled/partest/run/t6555.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import java.io.{Console => _, _}
33

44
object Test extends DirectTest {
55

6-
override def extraSettings: String = "-usejavacp -Xprint:specialize -Ydelambdafy:inline -d " + testOutput.path
6+
override def extraSettings: String = "-usejavacp -Vprint:specialize -Ydelambdafy:inline -d " + testOutput.path
77

88
override def code = "class Foo { val f = (param: Int) => param } "
99

0 commit comments

Comments
 (0)