@@ -2477,10 +2477,6 @@ ERROR(requires_not_suitable_archetype,none,
24772477 " type %0 in conformance requirement does not refer to a "
24782478 " generic parameter or associated type" ,
24792479 (Type))
2480- WARNING(requires_no_same_type_archetype,none,
2481- " neither type in same-type constraint (%0 or %1) refers to a "
2482- " generic parameter or associated type" ,
2483- (Type, Type))
24842480
24852481ERROR(requires_generic_params_made_equal,none,
24862482 " same-type requirement makes generic parameters %0 and %1 equivalent" ,
@@ -2494,71 +2490,32 @@ ERROR(recursive_generic_signature,none,
24942490 " %0 %1 has self-referential generic requirements" , (DescriptiveDeclKind, DeclBaseName))
24952491ERROR(recursive_generic_signature_extension,none,
24962492 " extension of %0 %1 has self-referential generic requirements" , (DescriptiveDeclKind, DeclBaseName))
2497- ERROR(recursive_same_type_constraint,none,
2498- " same-type constraint %0 == %1 is recursive" , (Type, Type))
2499- ERROR(recursive_superclass_constraint,none,
2500- " superclass constraint %0 : %1 is recursive" , (Type, Type))
2501- ERROR(requires_generic_param_same_type_does_not_conform,none,
2502- " same-type constraint type %0 does not conform to required protocol %1" ,
2503- (Type, Identifier))
2504- ERROR(same_type_does_not_inherit,none,
2505- " same-type constraint type %0 does not inherit from required superclass %1" ,
2506- (Type, Type))
25072493ERROR(requires_same_concrete_type,none,
25082494 " generic signature requires types %0 and %1 to be the same" , (Type, Type))
25092495WARNING(redundant_conformance_constraint,none,
25102496 " redundant conformance constraint %0 : %1" , (Type, ProtocolDecl *))
2511- NOTE(redundant_conformance_here,none,
2512- " conformance constraint %0 : %1 implied here" ,
2513- (Type, ProtocolDecl *))
25142497
25152498WARNING(missing_protocol_refinement, none,
25162499 " protocol %0 should be declared to refine %1 due to a same-type constraint on 'Self'" ,
25172500 (ProtocolDecl *, ProtocolDecl *))
25182501
2519- ERROR(same_type_conflict,none,
2520- " %select{generic parameter |protocol |}0%1 cannot be equal to both "
2521- " %2 and %3" , (unsigned , Type, Type, Type))
25222502ERROR(requirement_conflict,none,
25232503 " no type for %0 can satisfy both %1" ,
25242504 (Type, StringRef))
25252505WARNING(redundant_same_type_to_concrete,none,
25262506 " redundant same-type constraint %0 == %1" , (Type, Type))
2527- NOTE(same_type_redundancy_here,none,
2528- " same-type constraint %1 == %2 %select{written here|implied here|"
2529- " inferred from type here}0" ,
2530- (unsigned , Type, Type))
25312507ERROR(conflicting_superclass_constraints,none,
25322508 " type %0 cannot be a subclass of both %1 and %2" ,
25332509 (Type, Type, Type))
2534- NOTE(conflicting_superclass_constraint,none,
2535- " constraint conflicts with %0 : %1" ,
2536- (Type, Type))
25372510WARNING(redundant_superclass_constraint,none,
25382511 " redundant superclass constraint %0 : %1" , (Type, Type))
2539- NOTE(superclass_redundancy_here,none,
2540- " superclass constraint %0 : %1 implied here" ,
2541- (Type, Type))
25422512
2543- ERROR(conflicting_layout_constraints,none,
2544- " type %0 has conflicting constraints %1 and %2" ,
2545- (Type, LayoutConstraint, LayoutConstraint))
2546- NOTE(conflicting_layout_constraint, none,
2547- " constraint conflicts with %0 : %1" ,
2548- (Type, LayoutConstraint))
25492513WARNING(redundant_layout_constraint,none,
25502514 " redundant constraint %0 : %1" ,
25512515 (Type, LayoutConstraint))
2552- NOTE(previous_layout_constraint, none,
2553- " constraint %0 : %1 implied here" ,
2554- (Type, LayoutConstraint))
25552516
25562517WARNING(redundant_same_type_constraint,none,
25572518 " redundant same-type constraint %0 == %1" , (Type, Type))
2558- NOTE(previous_same_type_constraint, none,
2559- " previous same-type constraint %1 == %2 "
2560- " %select{written here|implied here|inferred from type here}0" ,
2561- (unsigned , Type, Type))
25622519
25632520WARNING(inherited_associated_type_redecl,none,
25642521 " redeclaration of associated type %0 from protocol %1 is better "
0 commit comments