rust/library/core/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
..
alloc Auto merge of #75687 - TimDiekmann:realloc-align, r=Amanieu 2020-08-26 10:44:28 +00:00
array Switch to intra-doc links in core::array 2020-08-23 14:42:21 -07:00
char Use intra-doc-links in core::{char, macros, fmt} 2020-08-24 00:13:23 +02:00
convert hir: introduce lang items for AST lowering 2020-08-16 15:42:23 +01:00
fmt Use intra-doc-links in core::{char, macros, fmt} 2020-08-24 00:13:23 +02:00
future hir: introduce lang items for AST lowering 2020-08-16 15:42:23 +01:00
hash mv std libs to library/ 2020-07-27 19:51:13 -05:00
iter Auto merge of #73565 - matthewjasper:core-min-spec, r=nagisa 2020-08-20 23:05:31 +00:00
macros Use intra-doc-links in core::{char, macros, fmt} 2020-08-24 00:13:23 +02:00
mem Suggest mem::forget if mem::ManuallyDrop::new isn't used 2020-08-25 09:40:53 -07:00
num Rollup merge of #75825 - jrheard:patch-1, r=steveklabnik 2020-08-24 11:48:44 +09:00
ops Stabilize Range[Inclusive]::is_empty 2020-08-24 13:20:25 -07:00
prelude mv std libs to library/ 2020-07-27 19:51:13 -05:00
ptr bump stable version 2020-08-23 16:12:39 +02:00
slice Use min_specialization in libcore 2020-08-19 20:08:02 +01:00
str Disambiguate char -> prim@char for core 2020-08-23 22:40:20 -04:00
sync fence docs: fix example Mutex 2020-07-29 15:45:42 +02:00
task hir: introduce lang items for AST lowering 2020-08-16 15:42:23 +01:00
unicode mv std libs to library/ 2020-07-27 19:51:13 -05:00
any.rs Use intra-doc links 2020-08-14 20:50:38 +02:00
ascii.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
bool.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
borrow.rs Remove AsRef link as it is in the prelude 2020-08-10 20:29:20 +02:00
cell.rs add track_caller to RefCell::{borrow, borrow_mut} 2020-07-28 15:45:25 -04:00
clone.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
cmp.rs Rollup merge of #75831 - lzutao:https, r=Dylan-DPC 2020-08-24 11:48:47 +09:00
default.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
ffi.rs Use intra-doc-links in core::{raw, ffi, pin} 2020-08-22 22:25:27 +02:00
hint.rs Remove intra-doc link as it resolves without reference link 2020-08-12 08:28:55 +02:00
internal_macros.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
intrinsics.rs Don't import atomics unless supported by the platform 2020-08-23 23:11:47 -04:00
lazy.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
lib.rs Add #![feature(const_float_classify)] for f64::classify and friends 2020-08-22 12:28:31 -07:00
marker.rs docs: add another derive for Copyable struct 2020-08-18 18:40:19 +02:00
option.rs hir: introduce lang items for AST lowering 2020-08-16 15:42:23 +01:00
panic.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
panicking.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
pin.rs Use intra-doc-links in core::{raw, ffi, pin} 2020-08-22 22:25:27 +02:00
primitive.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
raw.rs Use intra-doc-links in core::{raw, ffi, pin} 2020-08-22 22:25:27 +02:00
result.rs Fix intra-doc links 2020-08-20 12:39:12 -07:00
time.rs Add link for Duration 2020-08-09 23:26:42 +02:00
tuple.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
unit.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00