1- error: not automatically applying `DerefMut` on `ManuallyDrop` union field
1+ error: not automatically applying `DerefMut` through union field to target that might have `Drop` glue
22 --> $DIR/union-deref.rs:13:14
33 |
44LL | unsafe { u.f.0 = Vec::new() };
@@ -7,7 +7,7 @@ LL | unsafe { u.f.0 = Vec::new() };
77 = help: writing to this reference calls the destructor for the old value
88 = help: add an explicit `*` if that is desired, or call `ptr::write` to not run the destructor
99
10- error: not automatically applying `DerefMut` on `ManuallyDrop` union field
10+ error: not automatically applying `DerefMut` through union field to target that might have `Drop` glue
1111 --> $DIR/union-deref.rs:15:19
1212 |
1313LL | unsafe { &mut u.f.0 };
@@ -16,7 +16,7 @@ LL | unsafe { &mut u.f.0 };
1616 = help: writing to this reference calls the destructor for the old value
1717 = help: add an explicit `*` if that is desired, or call `ptr::write` to not run the destructor
1818
19- error: not automatically applying `DerefMut` on `ManuallyDrop` union field
19+ error: not automatically applying `DerefMut` through union field to target that might have `Drop` glue
2020 --> $DIR/union-deref.rs:17:14
2121 |
2222LL | unsafe { u.f.0.push(0) };
@@ -25,7 +25,7 @@ LL | unsafe { u.f.0.push(0) };
2525 = help: writing to this reference calls the destructor for the old value
2626 = help: add an explicit `*` if that is desired, or call `ptr::write` to not run the destructor
2727
28- error: not automatically applying `DerefMut` on `ManuallyDrop` union field
28+ error: not automatically applying `DerefMut` through union field to target that might have `Drop` glue
2929 --> $DIR/union-deref.rs:20:14
3030 |
3131LL | unsafe { (&mut u).f.0 = Vec::new() };
@@ -34,7 +34,7 @@ LL | unsafe { (&mut u).f.0 = Vec::new() };
3434 = help: writing to this reference calls the destructor for the old value
3535 = help: add an explicit `*` if that is desired, or call `ptr::write` to not run the destructor
3636
37- error: not automatically applying `DerefMut` on `ManuallyDrop` union field
37+ error: not automatically applying `DerefMut` through union field to target that might have `Drop` glue
3838 --> $DIR/union-deref.rs:22:19
3939 |
4040LL | unsafe { &mut (&mut u).f.0 };
@@ -43,7 +43,7 @@ LL | unsafe { &mut (&mut u).f.0 };
4343 = help: writing to this reference calls the destructor for the old value
4444 = help: add an explicit `*` if that is desired, or call `ptr::write` to not run the destructor
4545
46- error: not automatically applying `DerefMut` on `ManuallyDrop` union field
46+ error: not automatically applying `DerefMut` through union field to target that might have `Drop` glue
4747 --> $DIR/union-deref.rs:24:14
4848 |
4949LL | unsafe { (&mut u).f.0.push(0) };
@@ -52,7 +52,7 @@ LL | unsafe { (&mut u).f.0.push(0) };
5252 = help: writing to this reference calls the destructor for the old value
5353 = help: add an explicit `*` if that is desired, or call `ptr::write` to not run the destructor
5454
55- error: not automatically applying `DerefMut` on `ManuallyDrop` union field
55+ error: not automatically applying `DerefMut` through union field to target that might have `Drop` glue
5656 --> $DIR/union-deref.rs:29:14
5757 |
5858LL | unsafe { u.f.0.0 = Vec::new() };
@@ -61,7 +61,7 @@ LL | unsafe { u.f.0.0 = Vec::new() };
6161 = help: writing to this reference calls the destructor for the old value
6262 = help: add an explicit `*` if that is desired, or call `ptr::write` to not run the destructor
6363
64- error: not automatically applying `DerefMut` on `ManuallyDrop` union field
64+ error: not automatically applying `DerefMut` through union field to target that might have `Drop` glue
6565 --> $DIR/union-deref.rs:31:19
6666 |
6767LL | unsafe { &mut u.f.0.0 };
@@ -70,7 +70,7 @@ LL | unsafe { &mut u.f.0.0 };
7070 = help: writing to this reference calls the destructor for the old value
7171 = help: add an explicit `*` if that is desired, or call `ptr::write` to not run the destructor
7272
73- error: not automatically applying `DerefMut` on `ManuallyDrop` union field
73+ error: not automatically applying `DerefMut` through union field to target that might have `Drop` glue
7474 --> $DIR/union-deref.rs:33:14
7575 |
7676LL | unsafe { u.f.0.0.push(0) };
@@ -79,7 +79,7 @@ LL | unsafe { u.f.0.0.push(0) };
7979 = help: writing to this reference calls the destructor for the old value
8080 = help: add an explicit `*` if that is desired, or call `ptr::write` to not run the destructor
8181
82- error: not automatically applying `DerefMut` on `ManuallyDrop` union field
82+ error: not automatically applying `DerefMut` through union field to target that might have `Drop` glue
8383 --> $DIR/union-deref.rs:36:14
8484 |
8585LL | unsafe { (&mut u).f.0.0 = Vec::new() };
@@ -88,7 +88,7 @@ LL | unsafe { (&mut u).f.0.0 = Vec::new() };
8888 = help: writing to this reference calls the destructor for the old value
8989 = help: add an explicit `*` if that is desired, or call `ptr::write` to not run the destructor
9090
91- error: not automatically applying `DerefMut` on `ManuallyDrop` union field
91+ error: not automatically applying `DerefMut` through union field to target that might have `Drop` glue
9292 --> $DIR/union-deref.rs:38:19
9393 |
9494LL | unsafe { &mut (&mut u).f.0.0 };
@@ -97,7 +97,7 @@ LL | unsafe { &mut (&mut u).f.0.0 };
9797 = help: writing to this reference calls the destructor for the old value
9898 = help: add an explicit `*` if that is desired, or call `ptr::write` to not run the destructor
9999
100- error: not automatically applying `DerefMut` on `ManuallyDrop` union field
100+ error: not automatically applying `DerefMut` through union field to target that might have `Drop` glue
101101 --> $DIR/union-deref.rs:40:14
102102 |
103103LL | unsafe { (&mut u).f.0.0.push(0) };
0 commit comments