[exclusivity] Add a [builtin] flag to begin_[unpaired_]access.

This flag supports promoting KeyPath access violations to an error in
Swift 4+, while building the standard library in Swift 3 mode. This is
only necessary as long as the standard library continues to build in
Swift 3 mode. Once the standard library build migrates, it can all be
ripped out.

<rdar://problem/40115738> [Exclusivity] Enforce Keypath access as an error, not a warning in 4.2.
This commit is contained in:
Andrew Trick
2018-05-09 21:02:43 -07:00
parent dc5827cf22
commit fe326266cc
18 changed files with 173 additions and 56 deletions

View File

@@ -55,7 +55,7 @@ const uint16_t VERSION_MAJOR = 0;
/// describe what change you made. The content of this comment isn't important;
/// it just ensures a conflict if two people change the module format.
/// Don't worry about adhering to the 80-column limit for this line.
const uint16_t VERSION_MINOR = 417; // Last change: revert @usableFromInline imports
const uint16_t VERSION_MINOR = 418; // Last change: add begin_access [builtin].
using DeclIDField = BCFixed<31>;