Remove @autoclosure and @noescape as decl attributes

Using these in declaration position has been deprecated and
removed in Swift 3.  These attributes were not being parsed and
contained deadweight diagnostics that should have been moved
when these attributes became type attributes.
This commit is contained in:
Robert Widmann
2017-07-05 18:09:20 -07:00
parent ac56f91f47
commit ab580a3a0a
12 changed files with 4 additions and 233 deletions

View File

@@ -54,7 +54,7 @@ const uint16_t VERSION_MAJOR = 0;
/// in source control, you should also update the comment to briefly
/// 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.
const uint16_t VERSION_MINOR = 348; // Last change: 'inout' in parameter decls.
const uint16_t VERSION_MINOR = 349; // Last change: '@autoclosure' and '@noescape' no longer decl attributes.
using DeclID = PointerEmbeddedInt<unsigned, 31>;
using DeclIDField = BCFixed<31>;
@@ -1370,12 +1370,6 @@ namespace decls_block {
#undef BC_AVAIL_TUPLE
using AutoClosureDeclAttrLayout = BCRecordLayout<
AutoClosure_DECL_ATTR,
BCFixed<1>, // implicit flag
BCFixed<1> // escaping
>;
using ObjCDeclAttrLayout = BCRecordLayout<
ObjC_DECL_ATTR,
BCFixed<1>, // implicit flag