You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Print diagnostic groups as part of the LLVM printer in the same manner as the
Swift one does, always. Make `-print-diagnostic-groups` an inert option, since we
always print diagnostic group names with the `[#GroupName]` syntax.
As part of this, we no longer render the diagnostic group name as part
of the diagnostic *text*, instead leaving it up to the diagnostic
renderer to handle the category appropriately. Update all of the tests
that were depending on `-print-diagnostic-groups` putting it into the
text to instead use the `{{documentation-file=<file name>}}`
diagnostic verification syntax.
classKlass:UnsafeSendable{ // expected-warning{{'UnsafeSendable' is deprecated: Use @unchecked Sendable instead [DeprecatedDeclaration]}}
93
+
classKlass:UnsafeSendable{ // expected-warning{{'UnsafeSendable' is deprecated: Use @unchecked Sendable instead}}{{documentation-file=deprecated-declaration}}
@@ -55,7 +55,7 @@ final class TripleExecutor: SerialExecutor {
55
55
56
56
// expected-warning@+2{{'Job' is deprecated: renamed to 'ExecutorJob'}}
57
57
// expected-note@+1{{use 'ExecutorJob' instead}}
58
-
func enqueue(_ job:__owned Job){} // expected-warning{{'Executor.enqueue(Job)' is deprecated as a protocol requirement; conform type 'TripleExecutor' to 'Executor' by implementing 'func enqueue(ExecutorJob)' instead [DeprecatedDeclaration]}}
58
+
func enqueue(_ job:__owned Job){} // expected-warning{{'Executor.enqueue(Job)' is deprecated as a protocol requirement; conform type 'TripleExecutor' to 'Executor' by implementing 'func enqueue(ExecutorJob)' instead}}{{documentation-file=deprecated-declaration}}
@@ -41,7 +41,7 @@ final class TripleExecutor: SerialExecutor {
41
41
42
42
// expected-warning@+2{{'Job' is deprecated: renamed to 'ExecutorJob'}}
43
43
// expected-note@+1{{use 'ExecutorJob' instead}}
44
-
func enqueue(_ job:__owned Job){} // expected-warning{{'Executor.enqueue(Job)' is deprecated as a protocol requirement; conform type 'TripleExecutor' to 'Executor' by implementing 'func enqueue(ExecutorJob)' instead [DeprecatedDeclaration]}}
44
+
func enqueue(_ job:__owned Job){} // expected-warning{{'Executor.enqueue(Job)' is deprecated as a protocol requirement; conform type 'TripleExecutor' to 'Executor' by implementing 'func enqueue(ExecutorJob)' instead}}{{documentation-file=deprecated-declaration}}
45
45
46
46
func enqueue(_ job:consumingExecutorJob){}
47
47
@@ -65,7 +65,7 @@ final class NoneExecutor: SerialExecutor { // expected-error{{type 'NoneExecutor
65
65
finalclassStillDeprecated:SerialExecutor{
66
66
// expected-warning@+2{{'Job' is deprecated: renamed to 'ExecutorJob'}}
67
67
// expected-note@+1{{use 'ExecutorJob' instead}}
68
-
func enqueue(_ job:__owned Job){} // expected-warning{{'Executor.enqueue(Job)' is deprecated as a protocol requirement; conform type 'StillDeprecated' to 'Executor' by implementing 'func enqueue(ExecutorJob)' instead [DeprecatedDeclaration]}}
68
+
func enqueue(_ job:__owned Job){} // expected-warning{{'Executor.enqueue(Job)' is deprecated as a protocol requirement; conform type 'StillDeprecated' to 'Executor' by implementing 'func enqueue(ExecutorJob)' instead}}{{documentation-file=deprecated-declaration}}
let _:USLD=.init(unicodeScalarLiteral:"a") // expected-warning{{'init(unicodeScalarLiteral:)' is deprecated [DeprecatedDeclaration]}}
143
-
let _:USLD="a" // expected-warning{{'init(unicodeScalarLiteral:)' is deprecated [DeprecatedDeclaration]}}
142
+
let _:USLD=.init(unicodeScalarLiteral:"a") // expected-warning{{'init(unicodeScalarLiteral:)' is deprecated}}{{documentation-file=deprecated-declaration}}
143
+
let _:USLD="a" // expected-warning{{'init(unicodeScalarLiteral:)' is deprecated}}{{documentation-file=deprecated-declaration}}
let _:GCLD=.init(extendedGraphemeClusterLiteral:"π§π·") // expected-warning{{'init(extendedGraphemeClusterLiteral:)' is deprecated [DeprecatedDeclaration]}}
161
-
let _:GCLD="π§π·" // expected-warning{{'init(extendedGraphemeClusterLiteral:)' is deprecated [DeprecatedDeclaration]}}
160
+
let _:GCLD=.init(extendedGraphemeClusterLiteral:"π§π·") // expected-warning{{'init(extendedGraphemeClusterLiteral:)' is deprecated}}{{documentation-file=deprecated-declaration}}
161
+
let _:GCLD="π§π·" // expected-warning{{'init(extendedGraphemeClusterLiteral:)' is deprecated}}{{documentation-file=deprecated-declaration}}
0 commit comments