mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
NCGenerics: improve assertion messages
This commit is contained in:
@@ -4897,7 +4897,7 @@ InverseMarking TypeDecl::getMarking(InvertibleProtocolKind ip) const {
|
||||
static TypeDecl::CanBeInvertible::Result
|
||||
conformanceExists(TypeDecl const *decl, InvertibleProtocolKind ip) {
|
||||
auto *proto = decl->getASTContext().getProtocol(getKnownProtocolKind(ip));
|
||||
assert(proto);
|
||||
assert(proto && "missing Copyable/Escapable from stdlib!");
|
||||
|
||||
// Handle protocols specially, without building a GenericSignature.
|
||||
if (auto *protoDecl = dyn_cast<ProtocolDecl>(decl))
|
||||
|
||||
Reference in New Issue
Block a user