Merge pull request #67546 from gottesmm/pr-9bcf05ac3fb12f2872cc63507f782c766eba18b7

[sema] Ban user created read/set accessor that produce noncopyable types
This commit is contained in:
Michael Gottesman
2023-07-26 16:44:29 -07:00
committed by GitHub
6 changed files with 108 additions and 682 deletions

View File

@@ -7365,6 +7365,9 @@ ERROR(noncopyable_types_cannot_be_resilient, none,
"non-@frozen public and @usableFromInline noncopyable types are not "
"supported",
(const ValueDecl *))
ERROR(noncopyable_cannot_have_read_set_accessor,none,
"noncopyable %select{variable|subscript}0 cannot provide a read and set accessor",
(unsigned))
//------------------------------------------------------------------------------
// MARK: Runtime discoverable attributes (@runtimeMetadata)