@@ -13,7 +13,8 @@ fn test1_all_need_migration() {
13
13
let t2 = (String::new(), String::new());
14
14
15
15
let c = || { let _ = (&t, &t1, &t2);
16
- //~^ ERROR: drop order affected for closure because of `capture_disjoint_fields`
16
+ //~^ ERROR: drop order
17
+ //~| NOTE: for more information, see
17
18
//~| HELP: add a dummy let to cause `t`, `t1`, `t2` to be fully captured
18
19
19
20
let _t = t.0;
@@ -32,7 +33,8 @@ fn test2_only_precise_paths_need_migration() {
32
33
let t2 = (String::new(), String::new());
33
34
34
35
let c = || { let _ = (&t, &t1);
35
- //~^ ERROR: drop order affected for closure because of `capture_disjoint_fields`
36
+ //~^ ERROR: drop order
37
+ //~| NOTE: for more information, see
36
38
//~| HELP: add a dummy let to cause `t`, `t1` to be fully captured
37
39
let _t = t.0;
38
40
let _t1 = t1.0;
@@ -48,7 +50,8 @@ fn test3_only_by_value_need_migration() {
48
50
let t = (String::new(), String::new());
49
51
let t1 = (String::new(), String::new());
50
52
let c = || { let _ = &t;
51
- //~^ ERROR: drop order affected for closure because of `capture_disjoint_fields`
53
+ //~^ ERROR: drop order
54
+ //~| NOTE: for more information, see
52
55
//~| HELP: add a dummy let to cause `t` to be fully captured
53
56
let _t = t.0;
54
57
println!("{}", t1.1);
@@ -66,7 +69,8 @@ fn test4_only_non_copy_types_need_migration() {
66
69
let t1 = (0i32, 0i32);
67
70
68
71
let c = || { let _ = &t;
69
- //~^ ERROR: drop order affected for closure because of `capture_disjoint_fields`
72
+ //~^ ERROR: drop order
73
+ //~| NOTE: for more information, see
70
74
//~| HELP: add a dummy let to cause `t` to be fully captured
71
75
let _t = t.0;
72
76
let _t1 = t1.0;
@@ -84,7 +88,8 @@ fn test5_only_drop_types_need_migration() {
84
88
let s = S(0i32, 0i32);
85
89
86
90
let c = || { let _ = &t;
87
- //~^ ERROR: drop order affected for closure because of `capture_disjoint_fields`
91
+ //~^ ERROR: drop order
92
+ //~| NOTE: for more information, see
88
93
//~| HELP: add a dummy let to cause `t` to be fully captured
89
94
let _t = t.0;
90
95
let _s = s.0;
@@ -99,7 +104,8 @@ fn test6_move_closures_non_copy_types_might_need_migration() {
99
104
let t = (String::new(), String::new());
100
105
let t1 = (String::new(), String::new());
101
106
let c = move || { let _ = (&t1, &t);
102
- //~^ ERROR: drop order affected for closure because of `capture_disjoint_fields`
107
+ //~^ ERROR: drop order
108
+ //~| NOTE: for more information, see
103
109
//~| HELP: add a dummy let to cause `t1`, `t` to be fully captured
104
110
println!("{} {}", t1.1, t.1);
105
111
};
@@ -114,7 +120,8 @@ fn test7_drop_non_drop_aggregate_need_migration() {
114
120
let t = (String::new(), String::new(), 0i32);
115
121
116
122
let c = || { let _ = &t;
117
- //~^ ERROR: drop order affected for closure because of `capture_disjoint_fields`
123
+ //~^ ERROR: drop order
124
+ //~| NOTE: for more information, see
118
125
//~| HELP: add a dummy let to cause `t` to be fully captured
119
126
let _t = t.0;
120
127
};
0 commit comments