Skip to content

Commit e982743

Browse files
authored
Merge pull request #2909 from swiftwasm/main
[pull] swiftwasm from main
2 parents cef12d7 + 986d033 commit e982743

16 files changed

+298
-207
lines changed

include/swift/AST/DiagnosticsSema.def

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2395,11 +2395,10 @@ ERROR(requires_generic_param_same_type_does_not_conform,none,
23952395
ERROR(requires_same_concrete_type,none,
23962396
"generic signature requires types %0 and %1 to be the same", (Type, Type))
23972397
WARNING(redundant_conformance_constraint,none,
2398-
"redundant conformance constraint %0: %1", (Type, ProtocolDecl *))
2398+
"redundant conformance constraint %0 : %1", (Type, ProtocolDecl *))
23992399
NOTE(redundant_conformance_here,none,
2400-
"conformance constraint %1: %2 %select{written here|implied here|"
2401-
"inferred from type here}0",
2402-
(unsigned, Type, ProtocolDecl *))
2400+
"conformance constraint %0 : %1 implied here",
2401+
(Type, ProtocolDecl *))
24032402

24042403
ERROR(unsupported_recursive_requirements, none,
24052404
"requirement involves recursion that is not currently supported", ())
@@ -2425,15 +2424,17 @@ NOTE(superclass_redundancy_here,none,
24252424
(unsigned, Type, Type))
24262425

24272426
ERROR(conflicting_layout_constraints,none,
2428-
"%select{generic parameter |protocol |}0%1 has conflicting "
2429-
"constraints %2 and %3",
2430-
(unsigned, Type, LayoutConstraint, LayoutConstraint))
2427+
"type %0 has conflicting constraints %1 and %2",
2428+
(Type, LayoutConstraint, LayoutConstraint))
2429+
NOTE(conflicting_layout_constraint, none,
2430+
"constraint conflicts with %0 : %1",
2431+
(Type, LayoutConstraint))
24312432
WARNING(redundant_layout_constraint,none,
2432-
"redundant constraint %0 : %1", (Type, LayoutConstraint))
2433+
"redundant constraint %0 : %1",
2434+
(Type, LayoutConstraint))
24332435
NOTE(previous_layout_constraint, none,
2434-
"constraint %1 : %2 %select{written here|implied here|"
2435-
"inferred from type here}0",
2436-
(unsigned, Type, LayoutConstraint))
2436+
"constraint %0 : %1 implied here",
2437+
(Type, LayoutConstraint))
24372438

24382439
WARNING(redundant_same_type_constraint,none,
24392440
"redundant same-type constraint %0 == %1", (Type, Type))

0 commit comments

Comments
 (0)