rust/src/test/compile-fail-fulldeps
bors 354a29a5f1 Auto merge of #54277 - petrochenkov:afterder, r=alexcrichton
Temporarily prohibit proc macro attributes placed after derives

... and also proc macro attributes used together with `#[test]`/`#[bench]`.

Addresses item 6 from https://github.com/rust-lang/rust/pull/50911#issuecomment-411605393.

The end goal is straightforward predictable left-to-right expansion order for attributes.
Right now derives are expanded last regardless of their relative ordering with macro attributes and right now it's simpler to temporarily prohibit macro attributes placed after derives than changing the expansion order.
I'm not sure whether the new beta is already released or not, but if it's released, then this patch needs to be backported, so the solution needs to be minimal.

How to fix broken code (derives):
- Move macro attributes above derives. This won't change expansion order, they are expanded before derives anyway.

Using attribute macros on same items with `#[test]` and `#[bench]` is prohibited for similar expansion order reasons, but this one is going to be reverted much sooner than restrictions on derives.

How to fix broken code (test/bench):
- Enable `#![feature(plugin)]` (don't ask why).

r? @ghost
2018-09-17 18:13:26 +00:00
..
auxiliary Update tests 2018-08-31 00:47:09 -07:00
proc-macro Auto merge of #54277 - petrochenkov:afterder, r=alexcrichton 2018-09-17 18:13:26 +00:00
dropck_tarena_cycle_checked.rs Same change to point at borrow for mir errors 2017-12-15 13:52:05 -08:00
dropck_tarena_unsound_drop.rs Same change to point at borrow for mir errors 2017-12-15 13:52:05 -08:00
explore-issue-38412.rs Fix checking for missing stability annotations 2017-07-16 23:15:07 +03:00
gated-plugin.rs Unignore some tests in stage1 2015-05-13 19:58:49 -04:00
gated-quote.rs Add syntax::ext::tt::quoted::{TokenTree, ..} and remove tokenstream::TokenTree::Sequence. 2017-02-28 22:14:29 +00:00
issue-15778-fail.rs rustc: Stabilize much of the proc_macro feature 2018-07-16 07:58:06 -07:00
issue-18986.rs Preparations and cleanup 2016-10-27 22:14:41 +03:00
issue-48941.rs syntax: Enforce attribute grammar in the parser 2018-08-15 00:05:55 +03:00
lint-group-plugin-deny-cmdline.rs Use a crate attribute to load plugins 2015-02-09 13:27:27 -08:00
lint-plugin-deny-attr.rs Use a crate attribute to load plugins 2015-02-09 13:27:27 -08:00
lint-plugin-deny-cmdline.rs Use a crate attribute to load plugins 2015-02-09 13:27:27 -08:00
lint-plugin-forbid-cmdline.rs Use a crate attribute to load plugins 2015-02-09 13:27:27 -08:00
macro-crate-doesnt-resolve.rs resolve: Do not use "resolve"/"resolution" in error messages 2017-01-12 10:08:27 +03:00
macro-crate-rlib.rs Unignore some tests in stage1 2015-05-13 19:58:49 -04:00
macro-crate-unexported-macro.rs Refactor macro resolution errors + add derive macro suggestions 2017-02-16 22:03:15 +10:30
no-link-unknown-crate.rs Future proof #[no_link]. 2016-10-19 10:05:03 +00:00
plugin-as-extern-crate.rs Move unused-extern-crate to late pass 2017-08-27 19:02:24 +09:00
plugin-attr-register-deny.rs test for register_attribute() 2015-05-07 14:58:36 +05:30
plugin-plus-extern-crate.rs Warn when linking a plugin into a non-plugin crate 2015-02-12 12:44:31 -08:00
qquote.rs mv (mod) codemap source_map 2018-08-19 23:01:00 +02:00