Skip to content

Commit fafb6e2

Browse files
committed
more
1 parent f2f3fee commit fafb6e2

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

repl/test-resources/repl/rewrite-messages

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ scala> import scala.util._
44
1 | import scala.util._
55
| ^
66
| `_` is no longer supported for a wildcard import; use `*` instead
7-
No warnings can be incurred under -Werror (or -Xfatal-warnings)
7+
No warnings can be incurred under -Werror
88
1 warning found
99
1 error found
1010
scala> extension (x: Int) def foo(y: Int) = x + y
@@ -15,6 +15,6 @@ scala> 2 foo 4
1515
| ^^^
1616
|Alphanumeric method foo is not declared infix; it should not be used as infix operator.
1717
|Instead, use method syntax .foo(...) or backticked identifier `foo`.
18-
No warnings can be incurred under -Werror (or -Xfatal-warnings)
18+
No warnings can be incurred under -Werror
1919
1 warning found
20-
1 error found
20+
1 error found
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
scalac.options = -Xfatal-warnings
1+
scalac.options = -Werror

sbt-test/source-dependencies/sealed-extends-sealed/project/DottyInjectedPlugin.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ object DottyInjectedPlugin extends AutoPlugin {
77

88
override val projectSettings = Seq(
99
scalaVersion := sys.props("plugin.scalaVersion"),
10-
scalacOptions ++= Seq("-source:3.0-migration", "-Xfatal-warnings")
10+
scalacOptions ++= Seq("-source:3.0-migration", "-Werror")
1111
)
1212
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
> 'set scalacOptions += "-Xfatal-warnings"'
1+
> 'set scalacOptions += "-Werror"'
22

33
> compile
44

@@ -8,4 +8,4 @@ $ copy-file changes/A.scala A.scala
88
# D.scala needs recompiling because the pattern match in D
99
# is no longer exhaustive, which should be a warning
1010
# there is no way to make warnings errors, so this has to be manually checked
11-
-> compile
11+
-> compile

sbt-test/tasty-compat/add-overload/build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ lazy val `a-changes` = project.in(file("a-changes"))
1616

1717
lazy val c = project.in(file("."))
1818
.settings(
19-
scalacOptions ++= Seq("-from-tasty", "-Ycheck:readTasty", "-Xfatal-warnings"),
19+
scalacOptions ++= Seq("-from-tasty", "-Ycheck:readTasty", "-Werror"),
2020
Compile / sources := Seq(new java.io.File("c-input/B.tasty")),
2121
Compile / unmanagedClasspath += (ThisBuild / baseDirectory).value / "c-input",
2222
Compile / classDirectory := (ThisBuild / baseDirectory).value / "c-output"

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", "-Vprint:readTasty", "-Xprint-types"),
32+
// scalacOptions ++= Seq("-from-tasty", "-Ycheck:readTasty", "-Werror", "-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"

0 commit comments

Comments
 (0)