rust/src/test/ui-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 Add deprecated_name argument to the register lint group functions 2018-08-31 00:46:55 -07:00
custom-derive
proc-macro Auto merge of #54277 - petrochenkov:afterder, r=alexcrichton 2018-09-17 18:13:26 +00:00
rust-2018
attribute-order-restricted.rs Temporarily prohibit proc macro attributes placed after derives 2018-09-16 19:51:41 +03:00
attribute-order-restricted.stderr Temporarily prohibit proc macro attributes placed after derives 2018-09-16 19:51:41 +03:00
deprecated-derive.rs
deprecated-derive.stderr
invalid-punct-ident-1.rs
invalid-punct-ident-1.stderr
invalid-punct-ident-2.rs
invalid-punct-ident-2.stderr
invalid-punct-ident-3.rs
invalid-punct-ident-3.stderr
invalid-punct-ident-4.rs
invalid-punct-ident-4.stderr
lifetimes.rs
lifetimes.stderr
lint_tool_cmdline_allow.rs Add tests for cmdline tool lints 2018-09-01 18:06:36 +02:00
lint_tool_cmdline_allow.stderr deprcated -> deprecated 2018-09-01 21:45:44 +05:30
lint_tool_test.rs Update tests 2018-08-31 00:47:09 -07:00
lint_tool_test.stderr Update tests 2018-08-31 00:47:09 -07:00
lint-group-plugin.rs
lint-group-plugin.stderr
lint-plugin-cmdline-allow.rs
lint-plugin-cmdline-allow.stderr
lint-plugin-cmdline-load.rs
lint-plugin-cmdline-load.stderr
lint-plugin-forbid-attrs.rs
lint-plugin-forbid-attrs.stderr
lint-plugin.rs
lint-plugin.stderr
resolve-error.rs
resolve-error.stderr
unnecessary-extern-crate.rs Remove crate_visibility_modifier from 2018 edition 2018-09-09 02:28:13 +02:00
unnecessary-extern-crate.stderr