@@ -2000,11 +2000,6 @@ void PrintAST::printSingleDepthOfGenericSignature(
20002000 if (dependsOnOpaque (inverse.subject ))
20012001 continue ;
20022002
2003- if (inverse.getKind () == InvertibleProtocolKind::Escapable &&
2004- Options.SuppressNonEscapableTypes ) {
2005- continue ;
2006- }
2007-
20082003 if (isFirstReq) {
20092004 if (printRequirements)
20102005 Printer << " " << tok::kw_where << " " ;
@@ -3140,16 +3135,6 @@ suppressingFeatureAllowUnsafeAttribute(PrintOptions &options,
31403135 options.ExcludeAttrList .resize (originalExcludeAttrCount);
31413136}
31423137
3143- static void
3144- suppressingFeatureNonescapableTypes (PrintOptions &options,
3145- llvm::function_ref<void ()> action) {
3146- unsigned originalExcludeAttrCount = options.ExcludeAttrList .size ();
3147- options.ExcludeAttrList .push_back (DeclAttrKind::Lifetime);
3148- llvm::SaveAndRestore<bool > scope (options.SuppressNonEscapableTypes , true );
3149- action ();
3150- options.ExcludeAttrList .resize (originalExcludeAttrCount);
3151- }
3152-
31533138static void
31543139suppressingFeatureCoroutineAccessors (PrintOptions &options,
31553140 llvm::function_ref<void ()> action) {
@@ -7862,26 +7847,6 @@ swift::getInheritedForPrinting(
78627847 }
78637848 continue ;
78647849 }
7865-
7866- // Suppress Escapable and ~Escapable.
7867- if (options.SuppressNonEscapableTypes ) {
7868- if (auto pct = ty->getAs <ProtocolCompositionType>()) {
7869- auto inverses = pct->getInverses ();
7870- if (inverses.contains (InvertibleProtocolKind::Escapable)) {
7871- inverses.remove (InvertibleProtocolKind::Escapable);
7872- ty = ProtocolCompositionType::get (decl->getASTContext (),
7873- pct->getMembers (), inverses,
7874- pct->hasExplicitAnyObject ());
7875- if (ty->isAny ())
7876- continue ;
7877- }
7878- }
7879-
7880- if (auto protoTy = ty->getAs <ProtocolType>())
7881- if (protoTy->getDecl ()->isSpecificProtocol (
7882- KnownProtocolKind::Escapable))
7883- continue ;
7884- }
78857850 }
78867851
78877852 if (options.SuppressConformanceSuppression &&
0 commit comments