@@ -953,23 +953,23 @@ public func aggStructConsumeField(_ x: AggStruct) { // expected-error {{'x' has
953
953
// expected-error @-1 {{'x2' has a move only field that was consumed before later uses}}
954
954
classConsume ( x2. lhs)
955
955
for _ in 0 ..< 1024 {
956
- classConsume ( x2. lhs) // expected-note {{move only field consumed here }}
956
+ classConsume ( x2. lhs) // expected-note {{consuming use }}
957
957
}
958
958
}
959
959
960
960
public func aggStructConsumeFieldArg( _ x2: AggStruct ) {
961
961
// expected-error @-1 {{'x2' has a move only field that was consumed before later uses}}
962
962
classConsume ( x2. lhs)
963
963
for _ in 0 ..< 1024 {
964
- classConsume ( x2. lhs) // expected-note {{move only field consumed here }}
964
+ classConsume ( x2. lhs) // expected-note {{consuming use }}
965
965
}
966
966
}
967
967
968
968
public func aggStructConsumeFieldOwnedArg( _ x2: __owned AggStruct) {
969
969
// expected-error @-1 {{'x2' has a move only field that was consumed before later uses}}
970
970
classConsume ( x2. lhs)
971
971
for _ in 0 ..< 1024 {
972
- classConsume ( x2. lhs) // expected-note {{move only field consumed here }}
972
+ classConsume ( x2. lhs) // expected-note {{consuming use }}
973
973
}
974
974
}
975
975
@@ -1000,23 +1000,23 @@ public func aggStructConsumeGrandField(_ x: AggStruct) { // expected-error {{'x'
1000
1000
// expected-error @-1 {{'x2' has a move only field that was consumed before later uses}}
1001
1001
classConsume ( x2. pair. lhs)
1002
1002
for _ in 0 ..< 1024 {
1003
- classConsume ( x2. pair. lhs) // expected-note {{move only field consumed here }}
1003
+ classConsume ( x2. pair. lhs) // expected-note {{consuming use }}
1004
1004
}
1005
1005
}
1006
1006
1007
1007
public func aggStructConsumeGrandFieldArg( _ x2: AggStruct ) {
1008
1008
// expected-error @-1 {{'x2' has a move only field that was consumed before later uses}}
1009
1009
classConsume ( x2. pair. lhs)
1010
1010
for _ in 0 ..< 1024 {
1011
- classConsume ( x2. pair. lhs) // expected-note {{move only field consumed here }}
1011
+ classConsume ( x2. pair. lhs) // expected-note {{consuming use }}
1012
1012
}
1013
1013
}
1014
1014
1015
1015
public func aggStructConsumeGrandFieldOwnedArg( _ x2: __owned AggStruct) {
1016
1016
// expected-error @-1 {{'x2' has a move only field that was consumed before later uses}}
1017
1017
classConsume ( x2. pair. lhs)
1018
1018
for _ in 0 ..< 1024 {
1019
- classConsume ( x2. pair. lhs) // expected-note {{move only field consumed here }}
1019
+ classConsume ( x2. pair. lhs) // expected-note {{consuming use }}
1020
1020
}
1021
1021
}
1022
1022
@@ -1228,23 +1228,23 @@ public func aggGenericStructConsumeField(_ x: AggGenericStruct<Klass>) { // expe
1228
1228
// expected-error @-1 {{'x2' has a move only field that was consumed before later uses}}
1229
1229
classConsume ( x2. lhs)
1230
1230
for _ in 0 ..< 1024 {
1231
- classConsume ( x2. lhs) // expected-note {{move only field consumed here }}
1231
+ classConsume ( x2. lhs) // expected-note {{consuming use }}
1232
1232
}
1233
1233
}
1234
1234
1235
1235
public func aggGenericStructConsumeFieldArg( _ x2: AggGenericStruct < Klass > ) {
1236
1236
// expected-error @-1 {{'x2' has a move only field that was consumed before later uses}}
1237
1237
classConsume ( x2. lhs)
1238
1238
for _ in 0 ..< 1024 {
1239
- classConsume ( x2. lhs) // expected-note {{move only field consumed here }}
1239
+ classConsume ( x2. lhs) // expected-note {{consuming use }}
1240
1240
}
1241
1241
}
1242
1242
1243
1243
public func aggGenericStructConsumeFieldOwnedArg( _ x2: __owned AggGenericStruct< Klass > ) {
1244
1244
// expected-error @-1 {{'x2' has a move only field that was consumed before later uses}}
1245
1245
classConsume ( x2. lhs)
1246
1246
for _ in 0 ..< 1024 {
1247
- classConsume ( x2. lhs) // expected-note {{move only field consumed here }}
1247
+ classConsume ( x2. lhs) // expected-note {{consuming use }}
1248
1248
}
1249
1249
}
1250
1250
@@ -1275,23 +1275,23 @@ public func aggGenericStructConsumeGrandField(_ x: AggGenericStruct<Klass>) { //
1275
1275
// expected-error @-1 {{'x2' has a move only field that was consumed before later uses}}
1276
1276
classConsume ( x2. pair. lhs)
1277
1277
for _ in 0 ..< 1024 {
1278
- classConsume ( x2. pair. lhs) // expected-note {{move only field consumed here }}
1278
+ classConsume ( x2. pair. lhs) // expected-note {{consuming use }}
1279
1279
}
1280
1280
}
1281
1281
1282
1282
public func aggGenericStructConsumeGrandFieldArg( _ x2: AggGenericStruct < Klass > ) {
1283
1283
// expected-error @-1 {{'x2' has a move only field that was consumed before later uses}}
1284
1284
classConsume ( x2. pair. lhs)
1285
1285
for _ in 0 ..< 1024 {
1286
- classConsume ( x2. pair. lhs) // expected-note {{move only field consumed here }}
1286
+ classConsume ( x2. pair. lhs) // expected-note {{consuming use }}
1287
1287
}
1288
1288
}
1289
1289
1290
1290
public func aggGenericStructConsumeGrandFieldOwnedArg( _ x2: __owned AggGenericStruct< Klass > ) {
1291
1291
// expected-error @-1 {{'x2' has a move only field that was consumed before later uses}}
1292
1292
classConsume ( x2. pair. lhs)
1293
1293
for _ in 0 ..< 1024 {
1294
- classConsume ( x2. pair. lhs) // expected-note {{move only field consumed here }}
1294
+ classConsume ( x2. pair. lhs) // expected-note {{consuming use }}
1295
1295
}
1296
1296
}
1297
1297
@@ -1496,23 +1496,23 @@ public func aggGenericStructConsumeField<T>(_ x: AggGenericStruct<T>) { // expec
1496
1496
// expected-error @-1 {{'x2' has a move only field that was consumed before later uses}}
1497
1497
classConsume ( x2. lhs)
1498
1498
for _ in 0 ..< 1024 {
1499
- classConsume ( x2. lhs) // expected-note {{move only field consumed here }}
1499
+ classConsume ( x2. lhs) // expected-note {{consuming use }}
1500
1500
}
1501
1501
}
1502
1502
1503
1503
public func aggGenericStructConsumeFieldArg< T> ( _ x2: AggGenericStruct < T > ) {
1504
1504
// expected-error @-1 {{'x2' has a move only field that was consumed before later uses}}
1505
1505
classConsume ( x2. lhs)
1506
1506
for _ in 0 ..< 1024 {
1507
- classConsume ( x2. lhs) // expected-note {{move only field consumed here }}
1507
+ classConsume ( x2. lhs) // expected-note {{consuming use }}
1508
1508
}
1509
1509
}
1510
1510
1511
1511
public func aggGenericStructConsumeFieldOwnedArg< T> ( _ x2: __owned AggGenericStruct< T > ) {
1512
1512
// expected-error @-1 {{'x2' has a move only field that was consumed before later uses}}
1513
1513
classConsume ( x2. lhs)
1514
1514
for _ in 0 ..< 1024 {
1515
- classConsume ( x2. lhs) // expected-note {{move only field consumed here }}
1515
+ classConsume ( x2. lhs) // expected-note {{consuming use }}
1516
1516
}
1517
1517
}
1518
1518
@@ -1543,23 +1543,23 @@ public func aggGenericStructConsumeGrandField<T>(_ x: AggGenericStruct<T>) { //
1543
1543
// expected-error @-1 {{'x2' has a move only field that was consumed before later uses}}
1544
1544
classConsume ( x2. pair. lhs)
1545
1545
for _ in 0 ..< 1024 {
1546
- classConsume ( x2. pair. lhs) // expected-note {{move only field consumed here }}
1546
+ classConsume ( x2. pair. lhs) // expected-note {{consuming use }}
1547
1547
}
1548
1548
}
1549
1549
1550
1550
public func aggGenericStructConsumeGrandFieldArg< T> ( _ x2: AggGenericStruct < T > ) {
1551
1551
// expected-error @-1 {{'x2' has a move only field that was consumed before later uses}}
1552
1552
classConsume ( x2. pair. lhs)
1553
1553
for _ in 0 ..< 1024 {
1554
- classConsume ( x2. pair. lhs) // expected-note {{move only field consumed here }}
1554
+ classConsume ( x2. pair. lhs) // expected-note {{consuming use }}
1555
1555
}
1556
1556
}
1557
1557
1558
1558
public func aggGenericStructConsumeGrandFieldOwnedArg< T> ( _ x2: __owned AggGenericStruct< T > ) {
1559
1559
// expected-error @-1 {{'x2' has a move only field that was consumed before later uses}}
1560
1560
classConsume ( x2. pair. lhs)
1561
1561
for _ in 0 ..< 1024 {
1562
- classConsume ( x2. pair. lhs) // expected-note {{move only field consumed here }}
1562
+ classConsume ( x2. pair. lhs) // expected-note {{consuming use }}
1563
1563
}
1564
1564
}
1565
1565
0 commit comments