diff options
-rw-r--r-- | src/compiler/scala/tools/nsc/Settings.scala | 2 | ||||
-rw-r--r-- | src/manual/scala/man1/scalac.scala | 16 |
2 files changed, 9 insertions, 9 deletions
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 @@ -78,6 +78,13 @@ object scalac extends Command { ", " & 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( "Specify where to find user class files (on Unix-based systems " & @@ -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.") ) ), |