@@ -2777,7 +2777,7 @@ public func closureLetCaptureClassUseAfterConsume(_ x: consuming Klass) {
2777
2777
public func closureLetCaptureClassUseAfterConsume1( _ x: borrowing Klass ) { // expected-error {{'x' is borrowed and cannot be consumed}}
2778
2778
var x2 = x // expected-note {{consuming use here}}
2779
2779
// expected-error @-1 {{'x2' consumed more than once}}
2780
- // expected-error @-2 {{missing reinitialization of 'x2' after consume}}
2780
+ // expected-error @-2 {{missing reinitialization of inout parameter 'x2' after consume}}
2781
2781
x2 = x // expected-note {{consuming use here}}
2782
2782
2783
2783
let f = {
@@ -2802,7 +2802,7 @@ public func closureLetCaptureClassUseAfterConsume2(_ x2: inout Klass) {
2802
2802
// TODO: We are considering this to be an escaping use.
2803
2803
public func closureLetCaptureClassUseAfterConsume3( _ x2: inout Klass ) {
2804
2804
// expected-error @-1 {{'x2' consumed more than once}}
2805
- // expected-error @-2 {{missing reinitialization of 'x2' after consume}}
2805
+ // expected-error @-2 {{missing reinitialization of inout parameter 'x2' after consume}}
2806
2806
func useClosure( _ x: ( ) -> ( ) ) { }
2807
2807
2808
2808
useClosure {
@@ -2852,7 +2852,7 @@ public func closureLetCaptureClassOwnedArgUseAfterConsume(_ x2: __owned Klass) {
2852
2852
2853
2853
public func closureLetCaptureClassOwnedArgUseAfterConsume2( _ x2: consuming Klass ) {
2854
2854
// expected-error @-1 {{'x2' consumed more than once}}
2855
- // expected-error @-2 {{missing reinitialization of 'x2' after consume}}
2855
+ // expected-error @-2 {{missing reinitialization of inout parameter 'x2' after consume}}
2856
2856
let f = {
2857
2857
borrowVal ( x2)
2858
2858
consumeVal ( x2) // expected-note {{consuming use here}}
@@ -2878,7 +2878,7 @@ public func closureLetCaptureClassOwnedArgUseAfterConsume3(_ x2: __owned Klass)
2878
2878
public func closureLetCaptureClassOwnedArgUseAfterConsume4( _ x2: consuming Klass ) {
2879
2879
// expected-error @-1 {{'x2' consumed more than once}}
2880
2880
// expected-error @-2 {{'x2' consumed more than once}}
2881
- // expected-error @-3 {{missing reinitialization of 'x2' after consume}}
2881
+ // expected-error @-3 {{missing reinitialization of inout parameter 'x2' after consume}}
2882
2882
let f = {
2883
2883
borrowVal ( x2)
2884
2884
consumeVal ( x2) // expected-note {{consuming use here}}
@@ -2980,7 +2980,7 @@ public func closureVarCaptureClassUseAfterConsume3(_ x2: inout Klass) {
2980
2980
2981
2981
public func closureVarCaptureClassUseAfterConsume4( _ x2: inout Klass ) {
2982
2982
// expected-error @-1 {{'x2' consumed more than once}}
2983
- // expected-error @-2 {{missing reinitialization of 'x2' after consume}}
2983
+ // expected-error @-2 {{missing reinitialization of inout parameter 'x2' after consume}}
2984
2984
func useClosure( _ x: ( ) -> ( ) ) { }
2985
2985
2986
2986
useClosure {
@@ -3115,7 +3115,7 @@ public func deferCaptureClassOwnedArgUseAfterConsume(_ x2: __owned Klass) {
3115
3115
}
3116
3116
3117
3117
public func deferCaptureClassOwnedArgUseAfterConsume2( _ x2: consuming Klass ) {
3118
- // expected-error @-1 {{missing reinitialization of 'x2' after consume}}
3118
+ // expected-error @-1 {{missing reinitialization of inout parameter 'x2' after consume}}
3119
3119
// expected-error @-2 {{'x2' consumed more than once}}
3120
3120
defer {
3121
3121
borrowVal ( x2)
@@ -3138,7 +3138,7 @@ public func deferCaptureClassOwnedArgUseAfterConsume3(_ x2: __owned Klass) {
3138
3138
}
3139
3139
3140
3140
public func deferCaptureClassOwnedArgUseAfterConsume4( _ x2: consuming Klass ) {
3141
- // expected-error @-1 {{missing reinitialization of 'x2' after consume}}
3141
+ // expected-error @-1 {{missing reinitialization of inout parameter 'x2' after consume}}
3142
3142
// expected-error @-2 {{'x2' consumed more than once}}
3143
3143
// expected-error @-3 {{'x2' used after consume}}
3144
3144
defer { // expected-note {{non-consuming use here}}
@@ -3232,7 +3232,7 @@ public func closureLetAndDeferCaptureClassOwnedArgUseAfterConsume(_ x2: __owned
3232
3232
}
3233
3233
3234
3234
public func closureLetAndDeferCaptureClassOwnedArgUseAfterConsume2( _ x2: consuming Klass ) {
3235
- // expected-error @-1 {{missing reinitialization of 'x2' after consume}}
3235
+ // expected-error @-1 {{missing reinitialization of inout parameter 'x2' after consume}}
3236
3236
// expected-error @-2 {{'x2' consumed more than once}}
3237
3237
let f = {
3238
3238
defer {
@@ -3263,7 +3263,7 @@ public func closureLetAndDeferCaptureClassOwnedArgUseAfterConsume3(_ x2: __owned
3263
3263
3264
3264
public func closureLetAndDeferCaptureClassOwnedArgUseAfterConsume4( _ x2: consuming Klass ) {
3265
3265
// expected-error @-1 {{'x2' consumed more than once}}
3266
- // expected-error @-2 {{missing reinitialization of 'x2' after consume}}
3266
+ // expected-error @-2 {{missing reinitialization of inout parameter 'x2' after consume}}
3267
3267
let f = {
3268
3268
defer {
3269
3269
borrowVal ( x2)
@@ -3321,7 +3321,7 @@ public func closureLetAndClosureCaptureClassUseAfterConsume3(_ x: borrowing Klas
3321
3321
var x2 = x
3322
3322
// expected-note @-1 {{consuming use here}}
3323
3323
// expected-error @-2 {{'x2' consumed more than once}}
3324
- // expected-error @-3 {{missing reinitialization of 'x2' after consume}}
3324
+ // expected-error @-3 {{missing reinitialization of inout parameter 'x2' after consume}}
3325
3325
// expected-error @-4 {{'x2' consumed more than once}}
3326
3326
x2 = x
3327
3327
// expected-note @-1 {{consuming use here}}
@@ -3372,7 +3372,7 @@ public func closureLetAndClosureCaptureClassOwnedArgUseAfterConsume(_ x2: __owne
3372
3372
3373
3373
public func closureLetAndClosureCaptureClassOwnedArgUseAfterConsume2( _ x2: consuming Klass ) {
3374
3374
// expected-error @-1 {{'x2' consumed more than once}}
3375
- // expected-error @-2 {{missing reinitialization of 'x2' after consume}}
3375
+ // expected-error @-2 {{missing reinitialization of inout parameter 'x2' after consume}}
3376
3376
let f = {
3377
3377
let g = {
3378
3378
borrowVal ( x2)
@@ -3401,7 +3401,7 @@ public func closureLetAndClosureCaptureClassOwnedArgUseAfterConsume3(_ x2: __own
3401
3401
}
3402
3402
3403
3403
public func closureLetAndClosureCaptureClassOwnedArgUseAfterConsume4( _ x2: consuming Klass ) {
3404
- // expected-error @-1 {{missing reinitialization of 'x2' after consume}}
3404
+ // expected-error @-1 {{missing reinitialization of inout parameter 'x2' after consume}}
3405
3405
// expected-error @-2 {{'x2' consumed more than once}}
3406
3406
let f = {
3407
3407
let g = {
@@ -3417,7 +3417,7 @@ public func closureLetAndClosureCaptureClassOwnedArgUseAfterConsume4(_ x2: consu
3417
3417
}
3418
3418
3419
3419
public func closureLetAndClosureCaptureClassOwnedArgUseAfterConsume5( _ x2: consuming Klass ) {
3420
- // expected-error @-1 {{missing reinitialization of 'x2' after consume}}
3420
+ // expected-error @-1 {{missing reinitialization of inout parameter 'x2' after consume}}
3421
3421
// expected-error @-2 {{'x2' consumed more than once}}
3422
3422
// expected-error @-3 {{'x2' used after consume}}
3423
3423
let f = {
@@ -3518,7 +3518,7 @@ public func closureVarAndDeferCaptureClassOwnedArgUseAfterConsume(_ x2: __owned
3518
3518
}
3519
3519
3520
3520
public func closureVarAndDeferCaptureClassOwnedArgUseAfterConsume2( _ x2: consuming Klass ) {
3521
- // expected-error @-1 {{missing reinitialization of 'x2' after consume}}
3521
+ // expected-error @-1 {{missing reinitialization of inout parameter 'x2' after consume}}
3522
3522
// expected-error @-2 {{'x2' consumed more than once}}
3523
3523
var f = { }
3524
3524
f = {
@@ -3551,7 +3551,7 @@ public func closureVarAndDeferCaptureClassOwnedArgUseAfterConsume3(_ x2: __owned
3551
3551
3552
3552
public func closureVarAndDeferCaptureClassOwnedArgUseAfterConsume4( _ x2: consuming Klass ) {
3553
3553
// expected-error @-1 {{'x2' consumed more than once}}
3554
- // expected-error @-2 {{missing reinitialization of 'x2' after consume}}
3554
+ // expected-error @-2 {{missing reinitialization of inout parameter 'x2' after consume}}
3555
3555
var f = { }
3556
3556
f = {
3557
3557
defer {
0 commit comments