rust/src/test
bors b181835a6b Auto merge of #68529 - TimDiekmann:rename-alloc, r=Amanieu
Rename `Alloc` to `AllocRef`

The allocator-wg has decided to merge this change upstream in https://github.com/rust-lang/wg-allocators/issues/8#issuecomment-577122958.

This renames `Alloc` to `AllocRef` because types that implement `Alloc` are a reference, smart pointer, or ZSTs. It is not possible to have an allocator like `MyAlloc([u8; N])`, that owns the memory and also implements `Alloc`, since that would mean, that moving a `Vec<T, MyAlloc>` would need to correct the internal pointer, which is not possible as we don't have move constructors.

For further explanation please see https://github.com/rust-lang/wg-allocators/issues/8#issuecomment-489464843 and the comments after that one.

Additionally it clarifies the semantics of `Clone` on an allocator. In the case of `AllocRef`, it is clear that the cloned handle still points to the same allocator instance, and that you can free data allocated from one handle with another handle.

The initial proposal was to rename `Alloc` to `AllocHandle`, but `Ref` expresses the semantics better than `Handle`. Also, the only appearance of `Handle` in `std` are for windows specific resources, which might be confusing.

Blocked on https://github.com/rust-lang/miri/pull/1160
2020-01-28 08:44:20 +00:00
..
assembly
auxiliary
codegen Auto merge of #68122 - Centril:stabilize-transparent-enums, r=petrochenkov 2020-01-27 00:05:57 +00:00
codegen-units Make drop-glue take advantage of -Zshare-generics. 2020-01-23 13:15:15 +01:00
compile-fail Diagnostics should not end with a full stop 2020-01-12 15:37:50 +00:00
debuginfo Remove legacy debuginfo tests 2020-01-07 21:28:22 +01:00
incremental Add a test for #37333 2020-01-01 13:07:41 +01:00
mir-opt Render const pointers in MIR more compactly 2020-01-24 16:20:58 +01:00
pretty Remove unused ignore-license directives 2020-01-24 00:00:00 +00:00
run-fail Errors in promoteds may only cause lints not hard errors 2020-01-10 09:08:25 +01:00
run-make Do not use Cortex-M0 since Qemu is too old 2020-01-21 19:01:56 +01:00
run-make-fulldeps Auto merge of #68448 - maurer:dyn-cdylib, r=alexcrichton 2020-01-25 07:49:40 +00:00
run-pass-valgrind
rustdoc Auto merge of #68192 - GuillaumeGomez:remove-inlined-types, r=kinnison 2020-01-22 18:04:56 +00:00
rustdoc-js
rustdoc-js-std
rustdoc-ui Rollup merge of #68357 - ollie27:rustdoc_test_errors, r=GuillaumeGomez 2020-01-20 11:14:49 +05:30
rustfix
ui Auto merge of #68529 - TimDiekmann:rename-alloc, r=Amanieu 2020-01-28 08:44:20 +00:00
ui-fulldeps fix ui-fulldeps & tests fallout 2020-01-11 07:42:26 +01:00
COMPILER_TESTS.md