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

@@ -2267,16 +2267,6 @@ ModuleFile::getDeclChecked(DeclID DID, Optional<DeclContext *> ForcedContext) {
#undef DECODE_VER_TUPLE
}
case decls_block::AutoClosure_DECL_ATTR: {
bool isImplicit;
bool isEscaping;
serialization::decls_block::AutoClosureDeclAttrLayout::readRecord(
scratch, isImplicit, isEscaping);
Attr = new (ctx) AutoClosureAttr(SourceLoc(), SourceRange(),
isEscaping, isImplicit);
break;
}
case decls_block::ObjC_DECL_ATTR: {
bool isImplicit;
bool isImplicitName;