@@ -886,8 +886,8 @@ class ModuleDecl
886886 // /
887887 // / \returns An invalid conformance if the search failed, otherwise an
888888 // / abstract, concrete or pack conformance, depending on the lookup type.
889- ProtocolConformanceRef lookupConformance (Type type, ProtocolDecl *protocol,
890- bool allowMissing = false );
889+ static ProtocolConformanceRef lookupConformance (Type type, ProtocolDecl *protocol,
890+ bool allowMissing = false );
891891
892892 // / Global conformance lookup, checks conditional requirements.
893893 // / Requires a contextualized type.
@@ -903,9 +903,10 @@ class ModuleDecl
903903 // /
904904 // / \returns An invalid conformance if the search failed, otherwise an
905905 // / abstract, concrete or pack conformance, depending on the lookup type.
906- ProtocolConformanceRef checkConformance (Type type, ProtocolDecl *protocol,
907- // Note: different default from lookupConformance
908- bool allowMissing = true );
906+ static ProtocolConformanceRef checkConformance (Type type, ProtocolDecl *protocol,
907+ // Note: different default from
908+ // lookupConformance
909+ bool allowMissing = true );
909910
910911 // / Global conformance lookup, checks conditional requirements.
911912 // / Accepts interface types without context. If the conformance cannot be
@@ -925,22 +926,23 @@ class ModuleDecl
925926 // / if the search succeeded. `std::nullopt` if the type could have
926927 // / conditionally conformed depending on the context of the interface types.
927928 std::optional<ProtocolConformanceRef>
928- checkConformanceWithoutContext (Type type,
929- ProtocolDecl *protocol,
930- // Note: different default from lookupConformance
931- bool allowMissing = true );
929+ static checkConformanceWithoutContext (Type type,
930+ ProtocolDecl *protocol,
931+ // Note: different default from
932+ // lookupConformance
933+ bool allowMissing = true );
932934
933935
934936 // / Look for the conformance of the given existential type to the given
935937 // / protocol.
936- ProtocolConformanceRef lookupExistentialConformance (Type type,
937- ProtocolDecl *protocol);
938+ static ProtocolConformanceRef lookupExistentialConformance (Type type,
939+ ProtocolDecl *protocol);
938940
939941 // / Collect the conformances of \c fromType to each of the protocols of an
940942 // / existential type's layout.
941943 ArrayRef<ProtocolConformanceRef>
942- collectExistentialConformances (CanType fromType, CanType existential,
943- bool allowMissing = false );
944+ static collectExistentialConformances (CanType fromType, CanType existential,
945+ bool allowMissing = false );
944946
945947 // / Find a member named \p name in \p container that was declared in this
946948 // / module.
0 commit comments