157 |
#[allow(clippy::mem_forget)]
|
158 |
pub fn exit(self) {
|
163 |
// it's safe because the space taken by the variable `mr` will be reclaimed after forget.
|
164 |
#[allow(clippy::mem_forget)]
|
165 |
mem::forget(mr);
|
48 |
let data = unsafe { mem::transmute_copy(&s.data) };
|
49 |
#[allow(clippy::mem_forget)] // forget parent guard to avoid double unlock
|
50 |
mem::forget(s);
|
59 |
let raw = unsafe { RwLockReadGuard::rwlock(&s).raw() };
|
60 |
#[allow(clippy::mem_forget)] // forget parent guard to avoid double unlock
|
61 |
mem::forget(s);
|
111 |
let data = unsafe { mem::transmute_copy(&s.data) };
|
112 |
#[allow(clippy::mem_forget)] // forget parent guard to avoid double unlock
|
113 |
mem::forget(s);
|
122 |
let raw = unsafe { RwLockWriteGuard::rwlock(&s).raw() };
|
123 |
#[allow(clippy::mem_forget)] // forget parent guard to avoid double unlock
|
124 |
mem::forget(s);
|
118 |
);
|
119 |
#[allow(clippy::mem_forget)]
|
120 |
std::mem::forget(cancel_token);
|
125 |
// the borrow flag.
|
126 |
#[allow(clippy::mem_forget)]
|
127 |
mem::forget(orig);
|
160 |
// the borrow flag.
|
161 |
#[allow(clippy::mem_forget)]
|
162 |
mem::forget(orig);
|
27 |
/// Consumes the Owner without calling Drop and returns the raw pointer it was wrapping.
|
28 |
#[allow(clippy::mem_forget)]
|
29 |
pub fn into_ptr<S>(mut self) -> *mut S
|
400 |
#[allow(clippy::mem_forget)]
|
401 |
core::mem::forget(guard);
|
470 |
let data = owned.data;
|
471 |
#[allow(clippy::mem_forget)]
|
472 |
mem::forget(owned);
|
531 |
let data = self.data;
|
532 |
#[allow(clippy::mem_forget)]
|
533 |
mem::forget(self);
|
86 |
let ptr = unsafe { &(*arc.ptr).inner };
|
87 |
#[allow(clippy::mem_forget)]
|
88 |
mem::forget(arc);
|
849 |
let arc = unsafe { Arc::from_raw(self.iobuf.load(Acquire)) };
|
850 |
#[allow(clippy::mem_forget)]
|
851 |
std::mem::forget(arc.clone());
|
2521 |
debug_assert_eq!(self.len(), it.size_hint().0);
|
2522 |
#[allow(clippy::mem_forget)]
|
2523 |
mem::forget(self);
|
2671 |
);
|
2672 |
#[allow(clippy::mem_forget)]
|
2673 |
mem::forget(iterator);
|
2521 |
debug_assert_eq!(self.len(), it.size_hint().0);
|
2522 |
#[allow(clippy::mem_forget)]
|
2523 |
mem::forget(self);
|
2673 |
);
|
2674 |
#[allow(clippy::mem_forget)]
|
2675 |
mem::forget(iterator);
|
86 |
let ptr = unsafe { &(*arc.ptr).inner };
|
87 |
#[allow(clippy::mem_forget)]
|
88 |
mem::forget(arc);
|
849 |
let arc = unsafe { Arc::from_raw(self.iobuf.load(Acquire)) };
|
850 |
#[allow(clippy::mem_forget)]
|
851 |
std::mem::forget(arc.clone());
|
73 |
#![allow(clippy::match_bool)] // prettier
|
74 |
#![allow(clippy::mem_forget)] // Useful for FFI
|
75 |
#![allow(clippy::missing_docs_in_private_items)]
|
118 |
mod here_be_dragons {
|
119 |
#![allow(clippy::as_conversions, clippy::mem_forget, trivial_casts, unsafe_code)]
|
124 |
mod here_be_dragons {
|
125 |
#![allow(clippy::as_conversions, clippy::mem_forget, trivial_casts, unsafe_code)]
|
7 |
#![allow(clippy::mem_forget, unsafe_code)]
|
5 |
#![allow(clippy::mem_forget, unsafe_code)]
|