@@ -2000,11 +2000,6 @@ void PrintAST::printSingleDepthOfGenericSignature(
2000
2000
if (dependsOnOpaque (inverse.subject ))
2001
2001
continue ;
2002
2002
2003
- if (inverse.getKind () == InvertibleProtocolKind::Escapable &&
2004
- Options.SuppressNonEscapableTypes ) {
2005
- continue ;
2006
- }
2007
-
2008
2003
if (isFirstReq) {
2009
2004
if (printRequirements)
2010
2005
Printer << " " << tok::kw_where << " " ;
@@ -3140,16 +3135,6 @@ suppressingFeatureAllowUnsafeAttribute(PrintOptions &options,
3140
3135
options.ExcludeAttrList .resize (originalExcludeAttrCount);
3141
3136
}
3142
3137
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
-
3153
3138
static void
3154
3139
suppressingFeatureCoroutineAccessors (PrintOptions &options,
3155
3140
llvm::function_ref<void ()> action) {
@@ -7862,26 +7847,6 @@ swift::getInheritedForPrinting(
7862
7847
}
7863
7848
continue ;
7864
7849
}
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
- }
7885
7850
}
7886
7851
7887
7852
if (options.SuppressConformanceSuppression &&
0 commit comments