From dbcfaeb07efc3dee3d53bb293a8d62acda0901c8 Mon Sep 17 00:00:00 2001 From: Gilles Dubochet Date: Fri, 27 Jul 2007 11:40:31 +0000 Subject: “unchecked” is a standard option again (was -X). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/compiler/scala/tools/nsc/Settings.scala | 2 +- src/manual/scala/man1/scalac.scala | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/compiler/scala/tools/nsc/Settings.scala b/src/compiler/scala/tools/nsc/Settings.scala index 6b0c92e4c6..fd71f7f666 100644 --- a/src/compiler/scala/tools/nsc/Settings.scala +++ b/src/compiler/scala/tools/nsc/Settings.scala @@ -76,6 +76,7 @@ class Settings(error: String => Unit) { val nowarnings = BooleanSetting ("-nowarn", "Generate no warnings") val verbose = BooleanSetting ("-verbose", "Output messages about what the compiler is doing") val deprecation = BooleanSetting ("-deprecation", "Output source locations where deprecated APIs are used") + val unchecked = BooleanSetting ("-unchecked", "Enable detailed unchecked warnings") val classpath = new StringSetting ("-classpath", "path", "Specify where to find user class files", classpathDefault) { override val abbreviation = "-cp" } val sourcepath = StringSetting ("-sourcepath", "path", "Specify where to find input source files", "") val bootclasspath = StringSetting ("-bootclasspath", "path", "Override location of bootstrap class files", bootclasspathDefault) @@ -113,7 +114,6 @@ class Settings(error: String => Unit) { val Xshowobj = StringSetting ("-Xshow-object", "object", "Show object info", "") val showPhases = BooleanSetting ("-Xshow-phases", "Print a synopsis of compiler phases") val sourceReader = StringSetting ("-Xsource-reader", "classname", "Specify a custom method for reading source files", "scala.tools.nsc.io.SourceReader") - val unchecked = BooleanSetting ("-Xunchecked", "Enable detailed unchecked warnings") val Yhelp = BooleanSetting ("-Y", "Print a synopsis of private options").hideToIDE val browse = PhasesSetting ("-Ybrowse", "Browse the abstract syntax tree after") diff --git a/src/manual/scala/man1/scalac.scala b/src/manual/scala/man1/scalac.scala index 52b3792558..17535dc715 100644 --- a/src/manual/scala/man1/scalac.scala +++ b/src/manual/scala/man1/scalac.scala @@ -77,6 +77,13 @@ object scalac extends Command { "accepted values are: " & Mono("on") & ", " & Mono("off") & ", " & Mono("yes") & " and " & Mono("no") & ")", "Available since Scala version 2.2.1")), + Definition( + CmdOption("unchecked"), + SeqPara( + "Enable detailed unchecked warnings", + "Non variable type-arguments in type patterns are unchecked " & + "since they are eliminated by erasure", + "Available since Scala version 2.3.0")), Definition( CmdOption("classpath", Argument("path")), SeqPara( @@ -204,14 +211,7 @@ object scalac extends Command { "Print a synopsis of compiler phases."), Definition( CmdOption("Xsource-reader", Argument("classname")), - "Specify a custom method for reading source files."), - Definition( - CmdOption("Xunchecked"), - SeqPara( - "Enable detailed unchecked warnings", - "Non variable type-arguments in type patterns are unchecked " & - "since they are eliminated by erasure", - "Available since Scala version 2.3.0")), + "Specify a custom method for reading source files.") ) ), -- cgit v1.2.3