summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Iry <jamesiry@gmail.com>2013-01-14 06:55:23 -0800
committerJames Iry <jamesiry@gmail.com>2013-01-14 06:55:23 -0800
commit0c2e8842036876c6b824fbbb68fc7100ef62e02d (patch)
treec20c615ce411d38e76fcaa9402e28a92384de743
parent5d65772762072aa950a488c666673dc248b01d6d (diff)
downloadscala-0c2e8842036876c6b824fbbb68fc7100ef62e02d.tar.gz
scala-0c2e8842036876c6b824fbbb68fc7100ef62e02d.tar.bz2
scala-0c2e8842036876c6b824fbbb68fc7100ef62e02d.zip
SI-6963 Deprecates -Xmigration switch
-Xmigration is specific to the 2.7 to 2.8 upgrade and is no longer relevant. There is no plan to maintain it so it will be removed. This commit deprecates it in anticipation.
-rw-r--r--src/compiler/scala/tools/nsc/settings/ScalaSettings.scala3
-rw-r--r--test/files/neg/t6963.check2
-rw-r--r--test/files/neg/t6963.flags1
-rw-r--r--test/files/neg/t6963.scala3
4 files changed, 8 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/settings/ScalaSettings.scala b/src/compiler/scala/tools/nsc/settings/ScalaSettings.scala
index cfc7f14210..b2aa0ec6a5 100644
--- a/src/compiler/scala/tools/nsc/settings/ScalaSettings.scala
+++ b/src/compiler/scala/tools/nsc/settings/ScalaSettings.scala
@@ -85,7 +85,8 @@ trait ScalaSettings extends AbsScalaSettings
val logFreeTerms = BooleanSetting ("-Xlog-free-terms", "Print a message when reification creates a free term.")
val logFreeTypes = BooleanSetting ("-Xlog-free-types", "Print a message when reification resorts to generating a free type.")
val maxClassfileName = IntSetting ("-Xmax-classfile-name", "Maximum filename length for generated classes", 255, Some((72, 255)), _ => None)
- val Xmigration28 = BooleanSetting ("-Xmigration", "Warn about constructs whose behavior may have changed between 2.7 and 2.8.")
+ val Xmigration28 = BooleanSetting ("-Xmigration", "Warn about constructs whose behavior may have changed between 2.7 and 2.8.").
+ withDeprecationMessage("This setting is no longer useful and will be removed. Please remove it from your build.")
val nouescape = BooleanSetting ("-Xno-uescape", "Disable handling of \\u unicode escapes.")
val Xnojline = BooleanSetting ("-Xnojline", "Do not use JLine for editing.")
val Xverify = BooleanSetting ("-Xverify", "Verify generic signatures in generated bytecode (asm backend only.)")
diff --git a/test/files/neg/t6963.check b/test/files/neg/t6963.check
new file mode 100644
index 0000000000..41cb796b0b
--- /dev/null
+++ b/test/files/neg/t6963.check
@@ -0,0 +1,2 @@
+error: -Xmigration is deprecated: This setting is no longer useful and will be removed. Please remove it from your build.
+one error found
diff --git a/test/files/neg/t6963.flags b/test/files/neg/t6963.flags
new file mode 100644
index 0000000000..0b6d71496a
--- /dev/null
+++ b/test/files/neg/t6963.flags
@@ -0,0 +1 @@
+-Xmigration -deprecation -Xfatal-warnings \ No newline at end of file
diff --git a/test/files/neg/t6963.scala b/test/files/neg/t6963.scala
new file mode 100644
index 0000000000..4da52764f5
--- /dev/null
+++ b/test/files/neg/t6963.scala
@@ -0,0 +1,3 @@
+
+object test {
+}