about summary refs log tree commit diff
path: root/src/test/compile-fail/macro-inner-attributes.rs
AgeCommit message (Collapse)AuthorLines
2018-08-14Moved compile-fail tests to ui tests.David Wood-30/+0
2016-04-07Fix fallout in testsJeffrey Seyfried-1/+0
2015-03-15Strip all leading/trailing newlinesTamir Duberstein-1/+0
2015-02-16Add custom_attribute gate to tests which need themManish Goregaokar-0/+2
2015-01-05Un-gate macro_rulesKeegan McAllister-2/+0
2015-01-05Modernize macro_rules! invocationsKeegan McAllister-2/+2
macro_rules! is like an item that defines a macro. Other items don't have a trailing semicolon, or use a paren-delimited body. If there's an argument for matching the invocation syntax, e.g. parentheses for an expr macro, then I think that applies more strongly to the *inner* delimiters on the LHS, wrapping the individual argument patterns.
2014-12-18librustc: Always parse `macro!()`/`macro![]` as expressions if notPatrick Walton-3/+3
followed by a semicolon. This allows code like `vec![1i, 2, 3].len();` to work. This breaks code that uses macros as statements without putting semicolons after them, such as: fn main() { ... assert!(a == b) assert!(c == d) println(...); } It also breaks code that uses macros as items without semicolons: local_data_key!(foo) fn main() { println("hello world") } Add semicolons to fix this code. Those two examples can be fixed as follows: fn main() { ... assert!(a == b); assert!(c == d); println(...); } local_data_key!(foo); fn main() { println("hello world") } RFC #378. Closes #18635. [breaking-change]
2014-12-12Add support for equality constraints on associated typesNick Cameron-1/+1
2014-06-18rustc: reduce redundant resolve errors.Kevin Butler-3/+2
2014-03-28Convert most code to new inner attribute syntax.Brian Anderson-1/+1
Closes #2569
2014-03-28syntax: Accept meta matchers in macrosAlex Crichton-2/+2
This removes the `attr` matcher and adds a `meta` matcher. The previous `attr` matcher is now ambiguous because it doesn't disambiguate whether it means inner attribute or outer attribute. The new behavior can still be achieved by taking an argument of the form `#[$foo:meta]` (the brackets are part of the macro pattern). Closes #13067
2014-02-07Added tests to make tidyDerek Guenther-0/+10
2013-10-06Add appropriate #[feature] directives to testsAlex Crichton-0/+2
2013-08-08Allow attributes to appear as macro argumentsNiko Matsakis-0/+21
Fixes #8393