@@ -5040,6 +5040,39 @@ ERROR(availabilty_string_subscript_migration, none,
5040
5040
" subscripts returning String were obsoleted in Swift 4; explicitly "
5041
5041
" construct a String from subscripted result" , ())
5042
5042
5043
+ // Conformance availability checking diagnostics
5044
+
5045
+ ERROR(conformance_availability_unavailable, none,
5046
+ " conformance of %0 to %1 is unavailable"
5047
+ " %select{ in %3|}2%select{|: %4}4" ,
5048
+ (Type, Type, bool , StringRef, StringRef))
5049
+
5050
+ NOTE(conformance_availability_marked_unavailable, none,
5051
+ " conformance of %0 to %1 has been explicitly marked "
5052
+ " unavailable here" , (Type, Type))
5053
+
5054
+ NOTE(conformance_availability_introduced_in_version, none,
5055
+ " conformance of %0 to %1 was introduced in %2 %3" ,
5056
+ (Type, Type, StringRef, llvm::VersionTuple))
5057
+
5058
+ NOTE(conformance_availability_obsoleted, none,
5059
+ " conformance of %0 to %1 was obsoleted in %2 %3" ,
5060
+ (Type, Type, StringRef, llvm::VersionTuple))
5061
+
5062
+ WARNING(conformance_availability_deprecated, none,
5063
+ " conformance of %0 to %1 %select{is|%select{is|was}4}2 "
5064
+ " deprecated%select{| in %3%select{| %5}4}2%select{|: %6}6" ,
5065
+ (Type, Type, bool , StringRef, bool , llvm::VersionTuple,
5066
+ StringRef))
5067
+
5068
+ ERROR(conformance_availability_only_version_newer, none,
5069
+ " conformance of %0 to %1 is only available in %2 %3 or newer" ,
5070
+ (Type, Type, StringRef, llvm::VersionTuple))
5071
+
5072
+ WARNING(conformance_availability_only_version_newer_warn, none,
5073
+ " conformance of %0 to %1 is only available in %2 %3 or newer" ,
5074
+ (Type, Type, StringRef, llvm::VersionTuple))
5075
+
5043
5076
// ------------------------------------------------------------------------------
5044
5077
// MARK: @discardableResult
5045
5078
// ------------------------------------------------------------------------------
0 commit comments