Skip to content

Commit 87e6ce7

Browse files
committed
Don't check SWIFT_ENABLE_EXPERIMENTAL_NONCOPYABLE_GENERICS in code
Within the compiler, we should only check this define within the LangOpts constructor.
1 parent b5fc2fc commit 87e6ce7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/AST/Requirement.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,7 @@ void InverseRequirement::expandDefaults(
349349
ASTContext &ctx,
350350
ArrayRef<Type> gps,
351351
SmallVectorImpl<StructuralRequirement> &result) {
352-
if (!SWIFT_ENABLE_EXPERIMENTAL_NONCOPYABLE_GENERICS &&
353-
!ctx.LangOpts.hasFeature(Feature::NoncopyableGenerics))
352+
if (!ctx.LangOpts.hasFeature(Feature::NoncopyableGenerics))
354353
return;
355354

356355
for (auto gp : gps) {

0 commit comments

Comments
 (0)