Skip to content

Commit f3b6b45

Browse files
committed
add more specific versions of the noncopyable generics error diagnostic
1 parent 5ff0f41 commit f3b6b45

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

include/swift/AST/DiagnosticsSema.def

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7195,7 +7195,15 @@ ERROR(self_ownership_specifier_copyable,none,
71957195
(SelfAccessKind, DescriptiveDeclKind))
71967196
ERROR(ownership_specifier_nonescaping_closure,none,
71977197
"'%0' cannot be applied to nonescaping closure", (StringRef))
7198-
ERROR(noncopyable_generics, none, "noncopyable type %0 cannot be used with generics yet", (Type))
7198+
ERROR(noncopyable_generics, none,
7199+
"noncopyable type %0 cannot be used with generics yet",
7200+
(Type))
7201+
ERROR(noncopyable_generics_variadic, none,
7202+
"noncopyable type %0 cannot be used within a variadic type yet",
7203+
(Type))
7204+
ERROR(noncopyable_generics_specific, none,
7205+
"noncopyable type %0 cannot be used with generic type %1 yet",
7206+
(Type, Type))
71997207
ERROR(noncopyable_effectful_getter,none,
72007208
"%0 of noncopyable type cannot be 'async' or 'throws'", (DescriptiveDeclKind))
72017209
ERROR(noncopyable_enums_do_not_support_indirect,none,

0 commit comments

Comments
 (0)