rust/src/libcore
Mazdak Farrokhzad 6ad5e69b5a
Rollup merge of #69799 - TimDiekmann:zst, r=Amanieu
Allow ZSTs in `AllocRef`

Allows ZSTs in all `AllocRef` methods. The implementation of `AllocRef` for `Global` and `System` were adjusted to reflect those changes.

This is the second item on the roadmap to support ZSTs in `AllocRef`: https://github.com/rust-lang/wg-allocators/issues/38#issuecomment-595861542
After this has landed, I will adapt `RawVec`, but since this will be a pretty big overhaul, it makes sense to do a different PR for it.

~~Requires #69794 to land first~~

r? @Amanieu
2020-03-10 06:47:52 +01:00
..
array Format the world 2019-12-22 17:42:47 -05:00
benches Format the world 2019-12-22 17:42:47 -05:00
char Improve char::is_ascii_* code 2020-02-11 10:22:47 +01:00
convert Correct version that relaxed orphan rules 2020-03-07 08:21:27 +00:00
fmt Rollup merge of #69651 - Mark-Simulacrum:black-box-marker, r=eddyb 2020-03-08 16:53:38 +01:00
future Remove spotlight usage 2020-02-27 14:51:22 +01:00
hash clarify operator precedence 2020-02-26 12:43:37 +01:00
iter Rollup merge of #69514 - GuillaumeGomez:remove-spotlight, r=kinnison 2020-03-10 06:47:47 +01:00
macros macros: typo fix 2020-01-06 01:55:24 +00:00
mem fix various typos 2020-03-06 15:19:31 +01:00
num Auto merge of #68952 - faern:stabilize-assoc-int-consts, r=dtolnay 2020-03-04 07:29:32 +00:00
ops Remove problematic specialization from RangeInclusive 2020-02-08 18:47:41 -05:00
prelude Format libcore with rustfmt 2019-11-26 23:02:11 -08:00
ptr fix various typos 2020-03-06 15:19:31 +01:00
slice Use subslice patterns in slice methods 2020-03-04 10:34:24 -08:00
str Make link to std::str active 2020-03-05 08:52:46 +01:00
sync Document stable versions of f32 and f64 intrinsics 2020-02-11 22:08:20 +01:00
task Use matches macro in libcore and libstd 2020-01-08 07:10:28 +03:00
tests Add Layout::dangling() to return a well-aligned NonNull<u8> 2020-03-07 02:40:54 +01:00
unicode Replace old tables with new unicode data 2020-01-14 19:11:28 -05:00
alloc.rs Allow ZSTs in AllocRef 2020-03-08 11:01:12 +01:00
any.rs Minor: note why we can rely on Any trait for safety 2020-01-28 20:53:45 -05:00
ascii.rs Format libcore with rustfmt 2019-11-26 23:02:11 -08:00
bool.rs Format libcore with rustfmt (including tests and benches) 2019-12-06 20:20:51 -08:00
borrow.rs Format the world 2019-12-22 17:42:47 -05:00
Cargo.toml Move the matches! macro to the prelude 2019-10-23 15:35:36 +02:00
cell.rs Rollup merge of #68712 - HeroicKatora:finalize-ref-cell, r=dtolnay 2020-02-26 15:34:29 +01:00
clone.rs Require issue = "none" over issue = "0" in unstable attributes 2019-12-21 13:16:18 +02:00
cmp.rs Mark several functions and methods in core::cmp as #[must_use] 2020-02-08 10:42:23 -08:00
default.rs Format libcore with rustfmt 2019-11-26 23:02:11 -08:00
ffi.rs Require issue = "none" over issue = "0" in unstable attributes 2019-12-21 13:16:18 +02:00
hint.rs Format libcore with rustfmt (including tests and benches) 2019-12-06 20:20:51 -08:00
internal_macros.rs Require issue = "none" over issue = "0" in unstable attributes 2019-12-21 13:16:18 +02:00
intrinsics.rs Rollup merge of #68682 - LeSeulArtichaut:stable-intrinsics, r=steveklabnik 2020-03-02 13:42:35 +01:00
lib.rs Rollup merge of #69514 - GuillaumeGomez:remove-spotlight, r=kinnison 2020-03-10 06:47:47 +01:00
marker.rs Add trait Self filtering to rustc_on_unimplemented 2020-02-12 17:26:49 -08:00
option.rs Rollup merge of #68918 - brson:unwrapdoc, r=Dylan-DPC 2020-02-09 00:53:55 +01:00
panic.rs Format the world 2019-12-22 17:42:47 -05:00
panicking.rs core and std macros and panic internals use panic::Location::caller. 2020-01-04 10:02:17 -08:00
pin.rs fix various typos 2020-03-06 15:19:31 +01:00
primitive.rs Bump core::primitive to 1.43 2020-02-23 23:59:39 -08:00
raw.rs Fix more tests after revert of rustdoc cfg(test) feature 2019-06-09 18:15:53 +01:00
result.rs Rollup merge of #68918 - brson:unwrapdoc, r=Dylan-DPC 2020-02-09 00:53:55 +01:00
time.rs no longer promote non-pattern const functions 2019-12-22 18:37:22 +01:00
tuple.rs Format libcore with rustfmt 2019-11-26 23:02:11 -08:00
unit.rs Format libcore with rustfmt 2019-11-26 23:02:11 -08:00