Files
rust/library/std/src
bors 48717b6f3c Auto merge of #75912 - scottmcm:manuallydrop-vs-forget, r=Mark-Simulacrum
Suggest `mem::forget` if `mem::ManuallyDrop::new` isn't used

I think this communicates the intent more idiomatically, and is shorter anyway.

Inspired because [it came up on URLO](https://users.rust-lang.org/t/validity-of-memory-area-after-std-forget/47730/7?u=scottmcm), and it turns out that std had done it too in one spot:
![image](https://user-images.githubusercontent.com/18526288/91203819-e19f2980-e6f2-11ea-9112-835f3b22ce05.png)
2020-08-26 18:40:51 +00:00
..
2020-08-23 22:40:20 -04:00
2020-08-23 22:40:20 -04:00
2020-08-19 03:27:24 +00:00
2020-08-23 10:02:42 +00:00
2020-08-19 03:27:24 +00:00
2020-08-17 15:16:09 +01:00
2020-08-23 22:40:20 -04:00
2020-07-27 19:51:13 -05:00
2020-07-27 19:51:13 -05:00
2020-07-27 19:51:13 -05:00
2020-08-23 22:40:20 -04:00
2020-08-22 20:23:50 -07:00
2020-07-27 19:51:13 -05:00
2020-07-27 19:51:13 -05:00