summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/Global.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/scala/tools/nsc/Global.scala')
-rw-r--r--src/compiler/scala/tools/nsc/Global.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/Global.scala b/src/compiler/scala/tools/nsc/Global.scala
index 01d1ed4eac..5907c217a7 100644
--- a/src/compiler/scala/tools/nsc/Global.scala
+++ b/src/compiler/scala/tools/nsc/Global.scala
@@ -386,6 +386,9 @@ class Global(var settings: Settings, var reporter: Reporter) extends SymbolTable
// that's why it is placed here.
icodes.init
+ /** Deprecation warnings occurred */
+ var deprecationWarnings: boolean = false
+
private var p: Phase = firstPhase
private var stopped = false
for (val pd <- phaseDescriptors) {
@@ -489,6 +492,9 @@ class Global(var settings: Settings, var reporter: Reporter) extends SymbolTable
if (reporter.errors == 0) {
assert(stopped || symData.isEmpty, symData.elements.toList)
+ if (deprecationWarnings) {
+ warning("there were deprecation warnings; re-run with -deprecation for details")
+ }
} else {
for (val Pair(sym, file) <- symSource.elements) {
sym.reset(new loaders.SourcefileLoader(file))