@@ -7555,27 +7555,27 @@ ERROR(accessor_macro_not_single_var, none,
75557555// ------------------------------------------------------------------------------
75567556// MARK: Noncopyable Types Diagnostics
75577557// ------------------------------------------------------------------------------
7558- ERROR(noncopyable_but_copyable , none,
7559- " %kind0 required to be 'Copyable ' but is marked with '~Copyable '" ,
7560- (const ValueDecl *))
7561- ERROR(noncopyable_generic_but_copyable , none,
7558+ ERROR(inverse_but_also_conforms , none,
7559+ " %kind0 required to be '%1 ' but is marked with '~%1 '" ,
7560+ (const ValueDecl *, StringRef ))
7561+ ERROR(inverse_generic_but_also_conforms , none,
75627562 " %0 required to be '%1' but is marked with '~%1'" ,
75637563 (Type, StringRef))
75647564WARNING(redundant_inverse_constraint,none,
75657565 " redundant constraint %0 : '~%1'" , (Type, StringRef))
7566- ERROR(noncopyable_class , none,
7567- " classes cannot be noncopyable " ,
7568- ())
7566+ ERROR(inverse_on_class , none,
7567+ " classes cannot be '~%0' " ,
7568+ (StringRef ))
75697569ERROR(inverse_extension, none,
75707570 " cannot apply inverse %0 to extension" ,
75717571 (Type))
75727572ERROR(copyable_illegal_deinit, none,
75737573 " deinitializer cannot be declared in %kind0 that conforms to 'Copyable'" ,
75747574 (const ValueDecl *))
7575- ERROR(noncopyable_type_member_in_copyable ,none,
7575+ ERROR(inverse_type_member_in_conforming_type ,none,
75767576 " %select{stored property %2|associated value %2}1 of "
7577- " 'Copyable '-conforming %kind3 has noncopyable type %0" ,
7578- (Type, bool , DeclName, const ValueDecl *))
7577+ " '%4 '-conforming %kind3 has non-%4 type %0" ,
7578+ (Type, bool , DeclName, const ValueDecl *, StringRef ))
75797579NOTE(add_inverse,none,
75807580 " consider adding '~%1' to %kind0" ,
75817581 (const ValueDecl *, StringRef))
@@ -7592,6 +7592,9 @@ NOTE(note_inverse_preventing_conformance_explicit,none,
75927592NOTE(add_explicit_protocol_for_conformance,none,
75937593 " consider making %kind0 explicitly conform to the '%1' protocol" ,
75947594 (const ValueDecl *, StringRef))
7595+ ERROR(escapable_requires_feature_flag,none,
7596+ " type '~Escapable' requires -enable-experimental-feature NonEscapableTypes" ,
7597+ ())
75957598
75967599// -- older ones below --
75977600
0 commit comments