mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user