rust/src
Eduard-Mihai Burtescu 5ebd7c50a0 Rollup merge of #37614 - keeperofdakeys:proc_macro, r=jseyfried
macros 1.1: Allow proc_macro functions to declare attributes to be mark as used

This PR allows proc macro functions to declare attribute names that should be marked as used when attached to the deriving item. There are a few questions for this PR.

- Currently this uses a separate attribute named `#[proc_macro_attributes(..)]`, is this the best choice?
- In order to make this work, the `check_attribute` function had to be modified to not error on attributes marked as used. This is a pretty large change in semantics, is there a better way to do this?
- I've got a few clones where I don't know if I need them (like turning `item` into a `TokenStream`), can these be avoided?
- Is switching to `MultiItemDecorator` the right thing here?

Also fixes https://github.com/rust-lang/rust/issues/37563.
2016-11-09 20:51:18 +02:00
..
bootstrap Rollup merge of #37524 - alexcrichton:vendor, r=brson 2016-11-09 20:51:17 +02:00
build_helper run rustfmt on various folders 2016-10-16 15:41:01 +05:30
compiler-rt@ecd2b1f6d6 fix #37559: update compiler-rt 2016-11-04 19:08:09 +01:00
doc Rollup merge of #37601 - brson:book-without-tiers, r=steveklabnik 2016-11-08 16:20:57 -05:00
driver
etc Add libproc_macro from local rust to stage0 2016-10-19 00:12:42 -07:00
grammar
jemalloc@e058ca6616
liballoc Auto merge of #37657 - steveklabnik:rollup, r=steveklabnik 2016-11-09 05:35:23 -08:00
liballoc_jemalloc Add Fuchsia support 2016-10-22 07:08:06 -07:00
liballoc_system Print out the error when HeapFree failures do occur 2016-10-25 10:00:16 -04:00
libarena Auto merge of #37270 - Mark-Simulacrum:smallvec-optimized-arenas, r=eddyb 2016-10-26 03:47:55 -07:00
libbacktrace
libcollections Rollup merge of #37587 - ollie27:to_mut, r=alexcrichton 2016-11-05 10:50:25 -07:00
libcollectionstest Fix issues with the Add/AddAssign impls for Cow<str> 2016-11-04 01:07:00 +00:00
libcompiler_builtins Don't build any native compiler-builtin components for emscripten 2016-09-30 14:04:09 -07:00
libcore Rollup merge of #37472 - joshtriplett:doc-fmt-write-io-write, r=brson 2016-11-09 20:51:17 +02:00
libcoretest Merge branch 'master' of https://github.com/rust-lang/rust 2016-11-01 15:26:22 +01:00
libflate Use fast decompression in deflate_bytes. 2016-10-20 15:08:01 +11:00
libfmt_macros
libgetopts Changed most vec! invocations to use square braces 2016-10-31 22:51:40 +00:00
libgraphviz Changed most vec! invocations to use square braces 2016-10-31 22:51:40 +00:00
liblibc@7d9b71f097 Support for aarch64 architecture on Fuchsia 2016-10-24 16:58:35 -07:00
liblog run rustfmt on liblog 2016-10-12 23:45:03 +05:30
libpanic_abort
libpanic_unwind Remove mention of mipsel target_arch 2016-11-07 14:15:58 +08:00
libproc_macro Allow proc_macro functions to whitelist specific attributes 2016-11-08 23:03:56 +10:30
libproc_macro_plugin Split up libproc_macro_plugin 2016-10-28 12:17:17 +13:00
libproc_macro_tokens Split up libproc_macro_plugin 2016-10-28 12:17:17 +13:00
librand Changed most vec! invocations to use square braces 2016-10-31 22:51:40 +00:00
librustc Rollup merge of #37229 - nnethercote:FxHasher, r=nikomatsakis 2016-11-09 20:51:15 +02:00
librustc_back use arm abi blacklist for aarch64 fuchsia 2016-11-06 20:41:46 +01:00
librustc_bitflags std: Stabilize and deprecate APIs for 1.13 2016-10-03 10:34:34 -07:00
librustc_borrowck Rollup merge of #37229 - nnethercote:FxHasher, r=nikomatsakis 2016-11-09 20:51:15 +02:00
librustc_const_eval Rollup merge of #37229 - nnethercote:FxHasher, r=nikomatsakis 2016-11-09 20:51:15 +02:00
librustc_const_math Stabilise ? 2016-10-12 08:40:22 +13:00
librustc_data_structures Replace FnvHasher use with FxHasher. 2016-11-08 15:14:59 +11:00
librustc_driver Auto merge of #36843 - petrochenkov:dotstab, r=nikomatsakis 2016-11-08 02:06:45 -08:00
librustc_errors Merge branch 'new-rustbuild' into rollup 2016-11-05 10:50:26 -07:00
librustc_incremental Rollup merge of #37229 - nnethercote:FxHasher, r=nikomatsakis 2016-11-09 20:51:15 +02:00
librustc_lint Rollup merge of #37614 - keeperofdakeys:proc_macro, r=jseyfried 2016-11-09 20:51:18 +02:00
librustc_llvm Force static linking of LLVM 2016-11-06 16:33:34 +01:00
librustc_metadata Rollup merge of #37614 - keeperofdakeys:proc_macro, r=jseyfried 2016-11-09 20:51:18 +02:00
librustc_mir Rollup merge of #37229 - nnethercote:FxHasher, r=nikomatsakis 2016-11-09 20:51:15 +02:00
librustc_passes Rollup merge of #37229 - nnethercote:FxHasher, r=nikomatsakis 2016-11-09 20:51:15 +02:00
librustc_platform_intrinsics
librustc_plugin Changed most vec! invocations to use square braces 2016-10-31 22:51:40 +00:00
librustc_privacy Auto merge of #36843 - petrochenkov:dotstab, r=nikomatsakis 2016-11-08 02:06:45 -08:00
librustc_resolve Rollup merge of #37428 - estebank:generic-type-error-span, r=sanxiyn 2016-11-09 20:51:16 +02:00
librustc_save_analysis Auto merge of #36843 - petrochenkov:dotstab, r=nikomatsakis 2016-11-08 02:06:45 -08:00
librustc_trans Rollup merge of #37229 - nnethercote:FxHasher, r=nikomatsakis 2016-11-09 20:51:15 +02:00
librustc_typeck Rollup merge of #37370 - estebank:signature-2-empire-strikes-back, r=nikomatsakis 2016-11-09 20:51:16 +02:00
librustc_unicode std: Correct stability attributes for some implementations 2016-10-01 23:58:14 +01:00
librustdoc Rollup merge of #37250 - liigo:rustdoc-unsafe-fns, r=steveklabnik 2016-11-09 20:51:15 +02:00
libserialize Changed most vec! invocations to use square braces 2016-10-31 22:51:40 +00:00
libstd Rollup merge of #37432 - achanda:send_to, r=alexcrichton 2016-11-09 20:51:16 +02:00
libsyntax Rollup merge of #37614 - keeperofdakeys:proc_macro, r=jseyfried 2016-11-09 20:51:18 +02:00
libsyntax_ext Rollup merge of #37614 - keeperofdakeys:proc_macro, r=jseyfried 2016-11-09 20:51:18 +02:00
libsyntax_pos retool EarlyLint to track a Diagnostic 2016-11-01 14:07:45 -04:00
libterm Stabilise ? 2016-10-12 08:40:22 +13:00
libtest Changed most vec! invocations to use square braces 2016-10-31 22:51:40 +00:00
libunwind Add Fuchsia support 2016-10-22 07:08:06 -07:00
llvm@c1d962263b LLVM: Update submodule to rust-llvm-2016-10-29 branch. 2016-10-29 18:56:20 +03:00
rt Address comments and add requested tests 2016-09-03 13:39:35 +03:00
rtstartup Rename static mut to upper case 2016-10-14 17:21:11 +03:00
rust-installer@4f99485080 Update rust-installer. Fixes #36451 2016-10-05 00:17:30 +00:00
rustc Use workspaces and switch to a single Cargo.lock. 2016-10-07 12:04:32 -07:00
rustllvm LLVM: Update submodule to rust-llvm-2016-10-29 branch. 2016-10-29 18:56:20 +03:00
test Rollup merge of #37614 - keeperofdakeys:proc_macro, r=jseyfried 2016-11-09 20:51:18 +02:00
tools rustbuild: Tweak for vendored dependencies 2016-11-08 07:32:05 -08:00
vendor rustbuild: Vendor all dependencies 2016-11-08 07:32:05 -08:00
Cargo.lock rustbuild: Tweak for vendored dependencies 2016-11-08 07:32:05 -08:00
Cargo.toml Use workspaces and switch to a single Cargo.lock. 2016-10-07 12:04:32 -07:00
stage0.txt Allow bootstrapping without a key. Fixes #36548 2016-10-19 01:23:01 +00:00