bors
61e3d8a55c
Auto merge of #5824 - tmiasko:manually-drop-clone, r=Manishearth
...
Ignore not really redundant clones of ManuallyDrop
"Redundant" clones of `ManuallyDrop` are sometimes used for the side effect of
invoking the clone, without running the drop implementation of the inner type.
In other words, they aren't really redundant. For example, futures-rs crate:
```rust
#[allow(clippy::redundant_clone)] // The clone here isn't actually redundant.
unsafe fn increase_refcount<T: ArcWake>(data: *const ()) {
// Retain Arc, but don't touch refcount by wrapping in ManuallyDrop
let arc = mem::ManuallyDrop::new(Arc::<T>::from_raw(data as *const T));
// Now increase refcount, but don't drop new refcount either
let _arc_clone: mem::ManuallyDrop<_> = arc.clone();
}
```
changelog: Ignore redundant clone lint for ManuallyDrop.
2020-07-20 01:36:21 +00:00
..
2020-06-23 22:14:45 +02:00
2020-07-10 07:39:28 -04:00
2020-07-11 09:22:17 +02:00
2020-07-03 18:12:29 +02:00
2020-06-30 21:56:19 +02:00
2020-06-30 21:56:19 +02:00
2020-06-24 01:01:44 +02:00
2020-06-24 01:01:44 +02:00
2020-06-24 01:01:44 +02:00
2020-07-13 17:54:57 +02:00
2020-07-13 17:54:57 +02:00
2020-07-01 13:05:41 +02:00
2020-07-01 13:05:41 +02:00
2020-07-06 18:25:20 +02:00
2020-07-06 18:25:20 +02:00
2020-07-06 13:45:43 -03:00
2020-07-06 13:45:43 -03:00
2020-07-06 13:45:43 -03:00
2020-07-06 13:23:17 -03:00
2020-07-06 13:23:17 -03:00
2020-07-06 13:23:17 -03:00
2020-07-06 13:32:31 -03:00
2020-07-06 13:32:31 -03:00
2020-07-06 13:45:43 -03:00
2020-07-06 13:23:17 -03:00
2020-07-06 13:23:17 -03:00
2020-07-06 13:23:17 -03:00
2020-07-06 13:23:17 -03:00
2020-07-06 13:23:17 -03:00
2020-07-06 13:23:17 -03:00
2020-07-06 13:45:43 -03:00
2020-07-06 13:45:43 -03:00
2020-07-06 13:45:43 -03:00
2020-07-06 13:45:43 -03:00
2020-07-06 13:45:43 -03:00
2020-07-06 13:45:43 -03:00
2020-07-14 09:20:19 -07:00
2020-07-17 01:58:41 +02:00
2020-07-17 01:58:41 +02:00
2020-07-17 01:58:41 +02:00
2020-07-08 18:37:20 +02:00
2020-07-08 18:37:20 +02:00
2020-07-08 18:37:20 +02:00
2020-07-10 07:39:28 -04:00
2020-07-14 08:35:03 +02:00
2020-07-13 13:53:11 +00:00
2020-07-17 01:58:41 +02:00
2020-07-03 16:47:38 -07:00
2020-07-03 16:47:38 -07:00
2020-07-03 16:47:38 -07:00
2020-07-03 00:04:48 +03:00
2020-07-03 00:04:48 +03:00
2020-07-16 16:51:12 -07:00
2020-07-16 16:51:12 -07:00
2020-07-17 01:58:41 +02:00
2020-07-17 01:58:41 +02:00
2020-07-08 18:37:20 +02:00
2020-07-08 18:37:20 +02:00
2020-07-08 18:37:20 +02:00
2020-07-10 17:53:01 +02:00
2020-07-10 17:23:03 +02:00
2020-07-10 17:53:01 +02:00
2020-07-20 00:56:27 +02:00
2020-07-20 00:56:27 +02:00
2020-07-20 00:56:27 +02:00
2020-07-20 00:30:43 +02:00
2020-07-20 00:36:31 +02:00
2020-07-20 00:36:31 +02:00
2020-07-20 00:30:43 +02:00
2020-07-20 00:36:31 +02:00
2020-07-06 18:25:20 +02:00
2020-07-06 18:25:20 +02:00
2020-06-28 10:08:12 -07:00
2020-07-17 09:27:43 -07:00
2020-07-17 09:27:43 -07:00
2020-07-17 09:27:43 -07:00
2020-07-01 13:05:41 +02:00
2020-07-07 23:13:39 +09:00
2020-07-07 23:13:39 +09:00
2020-07-07 23:13:39 +09:00
2020-07-15 11:12:38 -03:00
2020-07-09 12:04:27 +02:00
2020-07-09 12:04:27 +02:00
2020-07-03 17:29:54 +02:00
2020-07-03 17:29:54 +02:00
2020-07-14 15:54:04 +02:00
2020-07-14 15:54:04 +02:00
2020-06-24 01:01:44 +02:00
2020-06-24 01:01:44 +02:00
2020-07-08 21:31:59 +02:00
2020-07-08 21:31:59 +02:00
2020-07-01 00:15:21 +02:00
2020-07-17 01:58:41 +02:00