bors
d7ad9d9797
Auto merge of #111530 - Urgau:uplift_undropped_manually_drops, r=compiler-errors
...
Uplift `clippy::undropped_manually_drops` lint
This PR aims at uplifting the `clippy::undropped_manually_drops` lint.
## `undropped_manually_drops`
(warn-by-default)
The `undropped_manually_drops` lint check for calls to `std::mem::drop` with a value of `std::mem::ManuallyDrop` which doesn't drop.
### Example
```rust
struct S;
drop(std::mem::ManuallyDrop::new(S));
```
### Explanation
`ManuallyDrop` does not drop it's inner value so calling `std::mem::drop` will not drop the inner value of the `ManuallyDrop` either.
-----
Mostly followed the instructions for uplifting an clippy lint described here: https://github.com/rust-lang/rust/pull/99696#pullrequestreview-1134072751
`@rustbot` label: +I-lang-nominated
r? compiler
-----
For Clippy:
changelog: Moves: Uplifted `clippy::undropped_manually_drops` into rustc
2023-06-09 12:44:23 +00:00
..
2023-06-06 11:50:24 +02:00
2023-04-21 02:45:48 -07:00
2023-05-06 14:42:35 +01:00
2023-04-27 17:18:11 +00:00
2023-05-18 08:52:54 +00:00
2023-01-21 14:38:25 -06:00
2023-05-12 02:08:43 +00:00
2023-04-01 11:11:21 -07:00
2023-03-22 16:05:20 +01:00
2023-03-22 16:05:20 +01:00
2023-05-31 12:28:38 +02:00
2023-05-31 12:28:38 +02:00
2023-03-20 00:50:03 +01:00
2023-03-20 00:50:03 +01:00
2023-05-21 13:37:32 +02:00
2023-05-21 14:16:41 +02:00
2023-05-21 14:16:41 +02:00
2023-05-21 14:16:41 +02:00
2023-03-15 23:30:12 +13:00
2023-05-21 14:09:03 +02:00
2023-05-21 14:28:09 +02:00
2023-05-21 14:28:09 +02:00
2023-05-21 14:28:09 +02:00
2023-04-12 16:17:31 +00:00
2023-05-27 00:18:28 +02:00
2023-05-27 00:18:28 +02:00
2023-05-06 23:22:32 -04:00
2023-02-18 19:05:44 +01:00
2023-01-20 02:26:12 -05:00
2023-01-20 02:26:12 -05:00
2023-04-20 15:06:17 -03:00
2023-02-28 07:55:19 +00:00
2023-02-28 07:57:17 +00:00
2023-02-23 13:57:13 +03:00
2023-02-23 13:57:13 +03:00
2023-02-17 14:44:58 +00:00
2023-03-15 14:07:39 +08:00
2023-03-15 14:07:39 +08:00
2023-03-29 09:56:28 +08:00
2023-03-29 09:56:28 +08:00
2023-03-29 09:56:28 +08:00
2023-04-20 16:28:49 +12:00
2023-05-11 14:51:01 +03:00
2023-05-11 14:51:01 +03:00
2023-02-23 13:57:13 +03:00
2023-02-23 13:57:13 +03:00
2023-05-19 19:04:10 +09:00
2023-05-19 19:04:10 +09:00
2023-05-19 19:04:10 +09:00
2023-05-19 19:04:10 +09:00
2023-01-12 12:21:35 +01:00
2023-05-19 19:04:15 +09:00
2023-05-19 19:04:15 +09:00
2023-06-06 11:50:24 +02:00
2023-06-06 11:50:24 +02:00
2023-04-19 12:47:35 +12:00
2023-04-19 12:47:35 +12:00
2023-02-22 08:40:47 -07:00
2023-02-22 08:40:47 -07:00
2023-04-04 18:55:02 +00:00
2023-04-04 18:55:02 +00:00
2023-06-05 14:25:00 +00:00
2023-06-05 14:25:00 +00:00
2023-06-05 14:25:00 +00:00
2023-01-20 02:26:12 -05:00
2023-04-21 22:32:38 +00:00
2023-04-12 16:17:31 +00:00
2023-04-28 17:24:48 +00:00
2023-04-28 17:24:48 +00:00
2023-01-18 20:46:36 +01:00
2023-04-28 17:24:48 +00:00
2023-04-28 17:24:48 +00:00
2023-06-03 09:22:47 +08:00
2023-01-31 20:28:11 +01:00
2023-04-28 20:28:56 -05:00
2023-02-16 19:44:03 +00:00
2023-04-28 20:28:56 -05:00
2023-03-06 13:41:07 +00:00
2023-03-06 13:41:07 +00:00
2023-06-08 11:41:34 +02:00
2023-06-08 11:41:34 +02:00
2023-01-15 05:08:30 +00:00
2023-01-15 05:08:30 +00:00
2023-01-15 05:08:30 +00:00
2023-02-28 07:55:19 +00:00
2023-02-28 07:57:17 +00:00