rust/src/libstd
bors 127a11a344 Auto merge of #70362 - TimDiekmann:alloc-overhaul, r=Amanieu
Overhaul of the `AllocRef` trait to match allocator-wg's latest consens; Take 2

GitHub won't let me reopen #69889 so I make a new PR.

In addition to #69889 this fixes the unsoundness of `RawVec::into_box` when using allocators supporting overallocating. Also it uses `MemoryBlock` in `AllocRef` to unify `_in_place` methods by passing `&mut MemoryBlock`. Additionally, `RawVec` now checks for `size_of::<T>()` again and ignore every ZST. The internal capacity of `RawVec` isn't used by ZSTs anymore, as `into_box` now requires a length to be specified.

r? @Amanieu

fixes rust-lang/wg-allocators#38
fixes rust-lang/wg-allocators#41
fixes rust-lang/wg-allocators#44
fixes rust-lang/wg-allocators#51
2020-04-02 06:08:35 +00:00
..
benches Format libstd with rustfmt 2019-11-29 18:43:27 -08:00
collections Don't redundantly repeat field names (clippy::redundant_field_names) 2020-03-06 19:42:18 +01:00
ffi add tracking issue 2020-03-28 19:23:49 -04:00
io more clippy fixes 2020-03-31 15:20:05 +02:00
net For issue 53957: revise unit tests to focus on underlying bug of 23076. 2020-03-20 13:56:25 -04:00
os fix various typos 2020-03-06 15:19:31 +01:00
prelude Rename asm! to llvm_asm! 2020-03-26 15:49:22 +00:00
sync Fix "since" field for Once::is_complete's #[stable] attribute 2020-03-15 10:19:26 +01:00
sys Rollup merge of #70081 - lcnr:issue68387, r=varkor 2020-04-01 00:27:20 +02:00
sys_common Rollup merge of #69937 - TyPR124:osstr_ascii, r=dtolnay 2020-03-29 01:32:17 +01:00
tests stdarch: update submodule. 2020-02-01 22:04:18 -05:00
thread Return NonZeroU64 from ThreadId::as_u64. 2020-03-21 19:48:23 +01:00
alloc.rs Auto merge of #70362 - TimDiekmann:alloc-overhaul, r=Amanieu 2020-04-02 06:08:35 +00:00
ascii.rs Format libstd with rustfmt 2019-11-29 18:43:27 -08:00
backtrace.rs remove redundant returns (clippy::needless_return) 2020-03-20 20:23:03 +01:00
build.rs remove dependency from libhermit 2019-11-25 08:59:23 +01:00
Cargo.toml Update backtrace crate to 0.3.46 2020-03-24 00:00:00 +00:00
env.rs doc: Add quote to .init_array 2020-03-19 17:35:28 +07:00
error.rs Overhaul of the AllocRef trait to match allocator-wg's latest consens 2020-03-26 17:10:54 +01:00
f32.rs Add notice about using new consts in new code on float modules 2020-02-12 20:20:56 +01:00
f64.rs Add notice about using new consts in new code on float modules 2020-02-12 20:20:56 +01:00
fs.rs Fix missing ` in doc for File::with_options 2020-03-06 14:27:09 +00:00
future.rs Add futures scaffolding to libcore 2020-03-17 22:17:31 +01:00
keyword_docs.rs Rollup merge of #67749 - gilescope:keyword-in, r=Dylan-DPC 2020-03-18 18:03:31 +01:00
lib.rs Replace last mention of IRC with Discord 2020-03-28 12:38:52 +01:00
macros.rs Update macros.rs: fix documentation typo. 2020-03-04 14:18:31 -05:00
memchr.rs libstd => 2018 2019-02-28 04:06:15 +09:00
num.rs Format libstd with rustfmt 2019-11-29 18:43:27 -08:00
panic.rs Require issue = "none" over issue = "0" in unstable attributes 2019-12-21 13:16:18 +02:00
panicking.rs Auto merge of #70010 - Amanieu:fix-opt-catch, r=Mark-Simulacrum 2020-03-16 08:08:51 +00:00
path.rs remove unneeded .as_ref() calls. 2020-02-29 02:16:04 +01:00
primitive_docs.rs Add notice about using new consts in new code on float modules 2020-02-12 20:20:56 +01:00
process.rs Format libstd with rustfmt 2019-11-29 18:43:27 -08:00
rt.rs Require issue = "none" over issue = "0" in unstable attributes 2019-12-21 13:16:18 +02:00
time.rs correct comment to match behavior 2020-02-29 08:40:09 -05:00