diff options
author | Paul Phillips <paulp@improving.org> | 2011-02-28 18:03:50 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-02-28 18:03:50 +0000 |
commit | fce8415e570bedbc4e62b6049ad94737b56c8699 (patch) | |
tree | 802582e7a9097b64317070227390b2390d040d35 /src/compiler/scala/tools/nsc/Global.scala | |
parent | 4073555ee54815015ee225149ac9989ee6b93af5 (diff) | |
download | scala-fce8415e570bedbc4e62b6049ad94737b56c8699.tar.gz scala-fce8415e570bedbc4e62b6049ad94737b56c8699.tar.bz2 scala-fce8415e570bedbc4e62b6049ad94737b56c8699.zip |
Fixing the other half of my recent breakage.
Diffstat (limited to 'src/compiler/scala/tools/nsc/Global.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/Global.scala | 6 |
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 f99db8cad7..c899e25302 100644 --- a/src/compiler/scala/tools/nsc/Global.scala +++ b/src/compiler/scala/tools/nsc/Global.scala @@ -786,6 +786,12 @@ class Global(var settings: Settings, var reporter: Reporter) extends SymbolTable } /* An iterator returning all the units being compiled in this run */ + /* !!! Note: changing this to unitbuf.toList.iterator breaks a bunch + of tests in tests/res. This is bad, it means the resident compiler + relies on an iterator of a mutable data structure reflecting changes + made to the underlying structure (in whatever accidental way it is + currently depending upon.) + */ def units: Iterator[CompilationUnit] = unitbuf.iterator /** A map from compiled top-level symbols to their source files */ |