about summary refs log tree commit diff
path: root/src/test/run-pass/macro-meta-items.rs
AgeCommit message (Collapse)AuthorLines
2018-09-06Migrated slew of run-pass tests to various subdirectories of `ui/run-pass/`.Felix S. Klock II-39/+0
2016-10-18Fix some pretty printing testsVadim Petrochenkov-1/+0
2015-03-15Strip all leading/trailing newlinesTamir Duberstein-1/+0
2015-01-05Un-gate macro_rulesKeegan McAllister-2/+0
2014-12-18librustc: Always parse `macro!()`/`macro![]` as expressions if notPatrick Walton-2/+2
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-04-06Remove ignore-fast that has cropped upAlex Crichton-2/+1
2014-03-28Convert most code to new inner attribute syntax.Brian Anderson-0/+1
Closes #2569
2014-03-28syntax: Accept meta matchers in macrosAlex Crichton-0/+43
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