Skip to content

Commit

Permalink
Address forgetting_copy_types lint
Browse files Browse the repository at this point in the history
Signed-off-by: Yuki Okushi <jtitor@2k36.org>
  • Loading branch information
JohnTitor committed Jun 10, 2023
1 parent a40b8af commit adcc889
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1353,6 +1353,7 @@ impl<'a> Generator<'a> {
same(field_ptr as *mut _,
__test_field_type_{ty}_{field}(ty_ptr_mut),
"field type {field} of {ty}");
#[allow(unknown_lints, forgetting_copy_types)]
mem::forget(uninit_ty);
}}
"#,
Expand Down

0 comments on commit adcc889

Please sign in to comment.