Merge pull request #66818 from kavon/noncopyable-and-raw-error

emit error when a noncopyable enum has a raw type
This commit is contained in:
swift-ci
2023-06-21 13:56:05 -07:00
committed by GitHub
4 changed files with 21 additions and 6 deletions

View File

@@ -3249,6 +3249,9 @@ ERROR(enum_raw_type_nonconforming_and_nonsynthable,none,
"and conformance could not be synthesized", (Type, Type))
NOTE(enum_declares_rawrep_with_raw_type,none,
"%0 declares raw type %1, which implies RawRepresentable", (Type, Type))
ERROR(enum_raw_type_nonconforming_and_noncopyable,none,
"%0 declares raw type %1, but cannot yet conform to RawRepresentable "
"because it is noncopyable", (Type, Type))
ERROR(enum_raw_type_access,none,
"enum %select{must be declared %select{"
"%select{private|fileprivate|internal|package|%error|%error}1|private or fileprivate}3"