@@ -12,7 +12,7 @@ fn test1_all_need_migration() {
12
12
13
13
let c = || {
14
14
//~^ERROR: Drop order affected for closure because of `capture_disjoint_fields`
15
- //~| NOTE: let (t, t1, t2) = (t, t1, t2);
15
+ //~| NOTE: drop(& (t, t1, t2) );
16
16
let _t = t. 0 ;
17
17
let _t1 = t1. 0 ;
18
18
let _t2 = t2. 0 ;
@@ -30,7 +30,7 @@ fn test2_only_precise_paths_need_migration() {
30
30
31
31
let c = || {
32
32
//~^ERROR: Drop order affected for closure because of `capture_disjoint_fields`
33
- //~| NOTE: let (t, t1) = (t, t1);
33
+ //~| NOTE: drop(& (t, t1) );
34
34
let _t = t. 0 ;
35
35
let _t1 = t1. 0 ;
36
36
let _t2 = t2;
@@ -46,7 +46,7 @@ fn test3_only_by_value_need_migration() {
46
46
let t1 = ( String :: new ( ) , String :: new ( ) ) ;
47
47
let c = || {
48
48
//~^ERROR: Drop order affected for closure because of `capture_disjoint_fields`
49
- //~| NOTE: let (t) = (t );
49
+ //~| NOTE: drop(&(t) );
50
50
let _t = t. 0 ;
51
51
println ! ( "{}" , t1. 1 ) ;
52
52
} ;
@@ -64,7 +64,7 @@ fn test4_only_non_copy_types_need_migration() {
64
64
65
65
let c = || {
66
66
//~^ERROR: Drop order affected for closure because of `capture_disjoint_fields`
67
- //~| NOTE: let (t) = (t );
67
+ //~| NOTE: drop(&(t) );
68
68
let _t = t. 0 ;
69
69
let _t1 = t1. 0 ;
70
70
} ;
@@ -82,7 +82,7 @@ fn test5_only_drop_types_need_migration() {
82
82
83
83
let c = || {
84
84
//~^ERROR: Drop order affected for closure because of `capture_disjoint_fields`
85
- //~| NOTE: let (t) = (t );
85
+ //~| NOTE: drop(&(t) );
86
86
let _t = t. 0 ;
87
87
let _s = s. 0 ;
88
88
} ;
@@ -97,7 +97,7 @@ fn test6_move_closures_non_copy_types_might_need_migration() {
97
97
let t1 = ( String :: new ( ) , String :: new ( ) ) ;
98
98
let c = move || {
99
99
//~^ERROR: Drop order affected for closure because of `capture_disjoint_fields`
100
- //~| NOTE: let (t1, t) = (t1, t);
100
+ //~| NOTE: drop(& (t1, t) );
101
101
println ! ( "{} {}" , t1. 1 , t. 1 ) ;
102
102
} ;
103
103
@@ -112,7 +112,7 @@ fn test7_drop_non_drop_aggregate_need_migration() {
112
112
113
113
let c = || {
114
114
//~^ERROR: Drop order affected for closure because of `capture_disjoint_fields`
115
- //~| NOTE: let (t) = (t );
115
+ //~| NOTE: drop(&(t) );
116
116
let _t = t. 0 ;
117
117
} ;
118
118
0 commit comments