mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Runtime: Finish removing the 'extra argument' notion
This commit is contained in:
@@ -1291,6 +1291,9 @@ llvm::Optional<TypeLookupError> swift::_checkGenericRequirements(
|
||||
if (!req.hasKnownKind())
|
||||
return TypeLookupError("unknown kind");
|
||||
|
||||
if (req.getFlags().isPackRequirement())
|
||||
return TypeLookupError("Packs not supported here yet");
|
||||
|
||||
// Resolve the subject generic parameter.
|
||||
auto result = swift_getTypeByMangledName(
|
||||
MetadataState::Abstract, req.getParam(), extraArguments.data(),
|
||||
@@ -1330,8 +1333,6 @@ llvm::Optional<TypeLookupError> swift::_checkGenericRequirements(
|
||||
return *result.getError();
|
||||
auto otherType = result.getType().getMetadata();
|
||||
|
||||
assert(!req.getFlags().hasExtraArgument());
|
||||
|
||||
// Check that the types are equivalent.
|
||||
if (subjectType != otherType)
|
||||
return TYPE_LOOKUP_ERROR_FMT(
|
||||
|
||||
Reference in New Issue
Block a user