about summary refs log tree commit diff
path: root/src/test/compile-fail/macro-with-seps-err-msg.rs
AgeCommit message (Collapse)AuthorLines
2018-08-14Moved compile-fail tests to ui tests.David Wood-15/+0
2018-08-06Enable macro modularization implicitly if one of "advanced" macro features ↵Vadim Petrochenkov-4/+0
is enabled Do not mark all builtin attributes as used when macro modularization is enabled
2018-04-20rustc: Tweak custom attribute capabilitiesAlex Crichton-0/+2
This commit starts to lay some groundwork for the stabilization of custom attribute invocations and general procedural macros. It applies a number of changes discussed on [internals] as well as a [recent issue][issue], namely: * The path used to specify a custom attribute must be of length one and cannot be a global path. This'll help future-proof us against any ambiguities and give us more time to settle the precise syntax. In the meantime though a bare identifier can be used and imported to invoke a custom attribute macro. A new feature gate, `proc_macro_path_invoc`, was added to gate multi-segment paths and absolute paths. * The set of items which can be annotated by a custom procedural attribute has been restricted. Statements, expressions, and modules are disallowed behind two new feature gates: `proc_macro_expr` and `proc_macro_mod`. * The input to procedural macro attributes has been restricted and adjusted. Today an invocation like `#[foo(bar)]` will receive `(bar)` as the input token stream, but after this PR it will only receive `bar` (the delimiters were removed). Invocations like `#[foo]` are still allowed and will be invoked in the same way as `#[foo()]`. This is a **breaking change** for all nightly users as the syntax coming in to procedural macros will be tweaked slightly. * Procedural macros (`foo!()` style) can only be expanded to item-like items by default. A separate feature gate, `proc_macro_non_items`, is required to expand to items like expressions, statements, etc. Closes #50038 [internals]: https://internals.rust-lang.org/t/help-stabilize-a-subset-of-macros-2-0/7252 [issue]: https://github.com/rust-lang/rust/issues/50038
2017-07-27Give span to angle bracketed generic argumentsVadim Petrochenkov-20/+0
2017-07-27Discern between `Path` and `Path<>` in ASTVadim Petrochenkov-2/+21
2017-03-14Add tests.Jeffrey Seyfried-0/+1
2017-01-22[Gate Tests] - marking feature testsColm Seale-0/+2
Removal of the lang feature gate tests whitelist #39059 r? @est31
2016-11-30Add tests.Jeffrey Seyfried-3/+3
2016-06-27Add regression testJeffrey Seyfried-3/+3
2013-05-03add gitattributes and fix whitespace issuesDaniel Micay-2/+0
2013-03-04added test case for macros with separators error messageJohn Clements-0/+17