mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Sema: Move tuple conformance diagnostic to TypeCheckDeclPrimary.cpp
This commit is contained in:
@@ -3190,12 +3190,6 @@ ExtendedNominalRequest::evaluate(Evaluator &evaluator,
|
||||
if (nominalTypes.empty())
|
||||
return nullptr;
|
||||
|
||||
// Diagnose experimental tuple extensions.
|
||||
if (isa<BuiltinTupleDecl>(nominalTypes[0]) &&
|
||||
!ctx.LangOpts.hasFeature(Feature::TupleConformances)) {
|
||||
ext->diagnose(diag::experimental_tuple_extension);
|
||||
}
|
||||
|
||||
return nominalTypes[0];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user