try to have a safer api around drops

This commit is contained in:
nora 2022-10-09 12:30:25 +02:00
parent 041a4cd670
commit 4bb7f99b73
No known key found for this signature in database
5 changed files with 291 additions and 238 deletions

3
clippy.toml Normal file
View file

@ -0,0 +1,3 @@
disallowed-methods = [
{ path = "core::mem::forget", reason = "mem::forget is sketchy around unsafe code, use ManuallyDrop instead" }
]