rust/src
bors 1685c92986 Auto merge of #42727 - alexcrichton:allocators-new, r=eddyb
rustc: Implement the #[global_allocator] attribute

This PR is an implementation of [RFC 1974] which specifies a new method of
defining a global allocator for a program. This obsoletes the old
`#![allocator]` attribute and also removes support for it.

[RFC 1974]: https://github.com/rust-lang/rfcs/pull/1974

The new `#[global_allocator]` attribute solves many issues encountered with the
`#![allocator]` attribute such as composition and restrictions on the crate
graph itself. The compiler now has much more control over the ABI of the
allocator and how it's implemented, allowing much more freedom in terms of how
this feature is implemented.

cc #27389
2017-07-06 00:16:16 +00:00
..
bootstrap rustbuild: Only -Zsave-analysis for libstd 2017-07-05 13:51:34 -07:00
build_helper rustbuild: Add ./x.py test --no-fail-fast 2017-06-02 09:27:44 -07:00
ci Restore old emscripten.sh for use by asmjs 2017-06-24 11:35:48 -07:00
compiler-rt@c8a8767c56
doc Auto merge of #42727 - alexcrichton:allocators-new, r=eddyb 2017-07-06 00:16:16 +00:00
driver
etc Merge crate collections into alloc 2017-06-13 23:37:34 -07:00
grammar changed upper bound digit in octal rule to 7 2017-06-13 17:08:12 -03:00
jemalloc@11bfb0dcf8 Revert "Update jemalloc to 4.5.0" 2017-06-09 20:23:38 +02:00
liballoc Auto merge of #42727 - alexcrichton:allocators-new, r=eddyb 2017-07-06 00:16:16 +00:00
liballoc_jemalloc rustc: Implement the #[global_allocator] attribute 2017-07-05 14:37:01 -07:00
liballoc_system rustc: Implement the #[global_allocator] attribute 2017-07-05 14:37:01 -07:00
libarena Bump version and stage0 compiler 2017-06-19 22:25:05 -07:00
libbacktrace
libcollections rustc: Implement the #[global_allocator] attribute 2017-07-05 14:37:01 -07:00
libcompiler_builtins Support VS 2017 2017-06-01 20:41:38 +00:00
libcore Rollup merge of #43043 - sfackler:reverse-stability, r=Mark-Simulacrum 2017-07-04 07:41:44 -06:00
libfmt_macros Bump version and stage0 compiler 2017-06-19 22:25:05 -07:00
libgetopts Switch to the crates.io getopts crate 2017-06-20 12:43:12 -07:00
libgraphviz Removed as many "```ignore" as possible. 2017-06-23 15:31:53 +08:00
liblibc@2015cf17a6 Update libc to 0.2.24 2017-06-20 13:42:52 +02:00
libpanic_abort
libpanic_unwind std: Avoid panics in rust_eh_personality 2017-06-08 07:06:43 -07:00
libproc_macro Address review comments. 2017-06-26 02:06:34 +00:00
libprofiler_builtins Fix gcc version required by libprofiler_builtins 2017-06-13 20:21:58 +01:00
librand Delete deprecated & unstable range-specific step_by 2017-07-01 19:18:02 -07:00
librustc Auto merge of #42727 - alexcrichton:allocators-new, r=eddyb 2017-07-06 00:16:16 +00:00
librustc_allocator rustc: Implement the #[global_allocator] attribute 2017-07-05 14:37:01 -07:00
librustc_asan rustc: Implement the #[global_allocator] attribute 2017-07-05 14:37:01 -07:00
librustc_back rustc: Implement the #[global_allocator] attribute 2017-07-05 14:37:01 -07:00
librustc_bitflags Bump version and stage0 compiler 2017-06-19 22:25:05 -07:00
librustc_borrowck Shift mir-dataflow from rustc_borrowck to rustc_mir crate. 2017-06-28 13:59:12 +02:00
librustc_const_eval rustc: move the PolyFnSig out of TyFnDef. 2017-06-27 16:39:52 +03:00
librustc_const_math Bump version and stage0 compiler 2017-06-19 22:25:05 -07:00
librustc_data_structures Revert "Stabilize RangeArgument" 2017-06-30 08:34:53 -10:00
librustc_driver Auto merge of #42727 - alexcrichton:allocators-new, r=eddyb 2017-07-06 00:16:16 +00:00
librustc_errors Revert "Change error count messages" 2017-07-02 13:49:30 +03:00
librustc_incremental Remove the remaining feature gates 2017-07-02 21:29:39 +02:00
librustc_lint rustc: Implement the #[global_allocator] attribute 2017-07-05 14:37:01 -07:00
librustc_llvm rustc: Implement the #[global_allocator] attribute 2017-07-05 14:37:01 -07:00
librustc_lsan rustc: Implement the #[global_allocator] attribute 2017-07-05 14:37:01 -07:00
librustc_metadata Auto merge of #42727 - alexcrichton:allocators-new, r=eddyb 2017-07-06 00:16:16 +00:00
librustc_mir Auto merge of #42924 - pnkfelix:mir-dataflow, r=arielb1 2017-06-30 03:56:33 +00:00
librustc_msan rustc: Implement the #[global_allocator] attribute 2017-07-05 14:37:01 -07:00
librustc_passes report the total number of errors on compilation failure 2017-07-02 16:16:44 +03:00
librustc_platform_intrinsics Bump version and stage0 compiler 2017-06-19 22:25:05 -07:00
librustc_plugin Removed as many "```ignore" as possible. 2017-06-23 15:31:53 +08:00
librustc_privacy rustc: move the PolyFnSig out of TyFnDef. 2017-06-27 16:39:52 +03:00
librustc_resolve Make $crate a keyword 2017-06-29 15:19:52 +03:00
librustc_save_analysis Rollup merge of #42766 - nrc:versions, r=nagisa 2017-06-21 10:40:17 -04:00
librustc_trans rustc: Implement the #[global_allocator] attribute 2017-07-05 14:37:01 -07:00
librustc_tsan rustc_{a,l,m,t}san: re-run build script if env var LLVM_CONFIG changes 2017-06-30 17:35:00 +00:00
librustc_typeck report the total number of errors on compilation failure 2017-07-02 16:16:44 +03:00
librustdoc Auto merge of #40939 - jseyfried:proc_macro_api, r=nrc 2017-07-05 21:16:34 +00:00
libserialize Removed as many "```ignore" as possible. 2017-06-23 15:31:53 +08:00
libstd Auto merge of #42727 - alexcrichton:allocators-new, r=eddyb 2017-07-06 00:16:16 +00:00
libstd_unicode [libstd_unicode] Upgrade to Unicode 10.0.0 2017-06-30 17:25:28 -06:00
libsyntax Auto merge of #42727 - alexcrichton:allocators-new, r=eddyb 2017-07-06 00:16:16 +00:00
libsyntax_ext Merge remote-tracking branch 'origin/master' into proc_macro_api 2017-07-05 08:42:13 -07:00
libsyntax_pos Merge remote-tracking branch 'origin/master' into proc_macro_api 2017-07-05 08:42:13 -07:00
libterm Bump version and stage0 compiler 2017-06-19 22:25:05 -07:00
libtest only show allowed failure count if there are allowed failures 2017-06-25 12:23:20 -04:00
libunwind
llvm@8e1b4fedfa Rebase LLVM on top of LLVM 4.0.1 2017-06-27 18:09:52 +03:00
rt Remove the in-tree flate crate 2017-06-20 07:11:29 -07:00
rtstartup Update stage0 bootstrap compiler 2017-04-29 12:11:14 -07:00
rustc
rustllvm Auto merge of #42727 - alexcrichton:allocators-new, r=eddyb 2017-07-06 00:16:16 +00:00
test Auto merge of #42727 - alexcrichton:allocators-new, r=eddyb 2017-07-06 00:16:16 +00:00
tools Merge remote-tracking branch 'origin/master' into proc_macro_api 2017-07-05 08:42:13 -07:00
Cargo.lock Auto merge of #42727 - alexcrichton:allocators-new, r=eddyb 2017-07-06 00:16:16 +00:00
Cargo.toml Update cargo/rls submodules and dependencies 2017-06-17 12:00:49 -07:00
stage0.txt Bump version and stage0 compiler 2017-06-19 22:25:05 -07:00