You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Suggestion for E0740 (union contains a field that needs dropping) doesn't change anything #90585
error[E0740]: unions may not contain fields that need dropping
--> src/lib.rs:2:5
|
2 | value: Vec<isize>,
| ^^^^^^^^^^^^^^^^^
|
note: `std::mem::ManuallyDrop` can be used to wrap the type
--> src/lib.rs:2:5
|
2 | value: Vec<isize>,
| ^^^^^^^^^^^^^^^^^
Ideally the output should look like:
error[E0740]: unions may not contain fields that need dropping
--> src/lib.rs:2:5
|
2 | value: Vec<isize>,
| ^^^^^^^^^^^^^^^^^
|
note: `std::mem::ManuallyDrop` can be used to wrap the type
--> src/lib.rs:2:5
|
2 | value: std::mem::ManuallyDrop<Vec<isize>>,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Activity
PatchMixolydic commentedon Nov 4, 2021
@rustbot modify labels: +D-invalid-suggestion
Rollup merge of rust-lang#90901 - rukai:improve_manuallydrop_help, r=…
Rollup merge of rust-lang#90901 - rukai:improve_manuallydrop_help, r=…