Skip to content

Commit 43af914

Browse files
committed
more enablement of code
(cherry picked from commit 2a51f10)
1 parent f23c339 commit 43af914

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

lib/Sema/CSSimplify.cpp

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3986,23 +3986,6 @@ ConstraintSystem::matchExistentialTypes(Type type1, Type type2,
39863986
return getTypeMatchAmbiguous();
39873987
}
39883988

3989-
if (!getASTContext().LangOpts.hasFeature(Feature::NoncopyableGenerics)) {
3990-
// move-only types (and their metatypes) cannot match with existential types.
3991-
if (type1->getMetatypeInstanceType()->isNoncopyable()) {
3992-
// tailor error message
3993-
if (shouldAttemptFixes()) {
3994-
auto *fix = MustBeCopyable::create(*this,
3995-
type1,
3996-
NoncopyableMatchFailure::forExistentialCast(
3997-
type2),
3998-
getConstraintLocator(locator));
3999-
if (!recordFix(fix))
4000-
return getTypeMatchSuccess();
4001-
}
4002-
return getTypeMatchFailure(locator);
4003-
}
4004-
}
4005-
40063989
// FIXME: Feels like a hack.
40073990
if (type1->is<InOutType>())
40083991
return getTypeMatchFailure(locator);

0 commit comments

Comments
 (0)