Commits

Jordan Rose committed f7977e6807a
[serialization] Reject modules with a different version number. From now on, /any/ changes to SIL or AST serialization must increment VERSION_MINOR in ModuleFormat.h. The original intent of VERSION_MAJOR/VERSION_MINOR was that VERSION_MAJOR would only increment when backwards-incompatible changes are introduced, and VERSION_MINOR merely indicates whether to expect additional information. However, the module infrastructure currently isn't forgiving enough to accept even backwards-compatible changes to the record schemas, and the SIL serialization design might not be compatible with that at all. So for now, treat any version number 0.x as incompatible with any other 0.y. We can bump to 1 when we hit stability. <rdar://problem/15494343> Swift SVN r13841