Skip to content

Commit 74990e4

Browse files
committed
use "-Xlint:adapted-args" instead of "-Yno-adapted-args"
1 parent d8e0211 commit 74990e4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ lazy val example = Project(
9494
standardSettings,
9595
name := "scalaz-example",
9696
notPublish,
97-
scalacOptions in (Compile, compile) -= "-Yno-adapted-args"
97+
scalacOptions in (Compile, compile) -= "-Xlint:adapted-args"
9898
).dependsOn(
9999
coreJVM, iterateeJVM
100100
)
@@ -158,7 +158,7 @@ lazy val site = Project(
158158
standardSettings,
159159
name := "scalaz-site",
160160
notPublish,
161-
scalacOptions in (Compile, compile) -= "-Yno-adapted-args",
161+
scalacOptions in (Compile, compile) -= "-Xlint:adapted-args",
162162
).dependsOn(
163163
coreJVM
164164
).enablePlugins(

project/build.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ object build {
9999
private val stdOptions = Seq(
100100
// contains -language:postfixOps (because 1+ as a parameter to a higher-order function is treated as a postfix op)
101101
"-deprecation",
102+
"-Xlint:adapted-args",
102103
"-encoding", "UTF-8",
103104
"-feature",
104105
"-language:implicitConversions", "-language:higherKinds", "-language:existentials", "-language:postfixOps",
@@ -168,7 +169,6 @@ object build {
168169
Seq(
169170
"-Xfuture",
170171
"-Ypartial-unification",
171-
"-Yno-adapted-args"
172172
)
173173
}.toList.flatten,
174174
scalacOptions ++= {

0 commit comments

Comments
 (0)