about summary refs log tree commit diff
path: root/src/test/run-pass/macro-2.rs
AgeCommit message (Collapse)AuthorLines
2018-09-06Migrated slew of run-pass tests to various subdirectories of `ui/run-pass/`.Felix S. Klock II-21/+0
2016-10-18Fix some pretty printing testsVadim Petrochenkov-2/+0
2015-06-13Use `assert_eq!` instead of `assert!` in testspetrochenkov-1/+1
2015-03-26Mass rename uint/int to usize/isizeAlex Crichton-1/+1
Now that support has been removed, all lingering use cases are renamed.
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-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-14Use new attribute syntax in python files in src/etc too (#13478)Manish Goregaokar-1/+1
2014-02-11Change `xfail` directives in compiletests to `ignore`, closes #11363Florian Hahn-2/+2
2013-10-06Add appropriate #[feature] directives to testsAlex Crichton-0/+2
2013-03-29librustc: Remove `fail_unless!`Patrick Walton-1/+1
2013-03-07test: Fix tests.Patrick Walton-1/+1
2013-02-01check-fast fallout from removing export, r=burningtreeGraydon Hoare-1/+1
2012-12-10Reliciense makefiles and testsuite. Yup.Graydon Hoare-0/+10
2012-11-29Update tests to respect the way that macros work now.Paul Stansifer-2/+2
2012-11-13cleanup: convert some remaining #foo invocations to foo! form.Graydon Hoare-7/+0
2012-08-23Eliminate some extraneous curly brackets inside invocations of `macro_rules!`.Paul Stansifer-1/+1
2012-08-23Update invocation syntax for `macro_rules!`Paul Stansifer-2/+2
2012-08-23`m1!{...}` -> `m1!(...)`Paul Stansifer-2/+2
2012-08-01Convert ret to returnBrian Anderson-2/+2
2012-07-30Change syntax extension syntax: `#m[...]` -> `m!{...}`.Paul Stansifer-1/+1
2012-07-11Test (but don't pretty-print) the new macro system.Paul Stansifer-1/+12
2011-08-20ReformatBrian Anderson-3/+7
This changes the indexing syntax from .() to [], the vector syntax from ~[] to [] and the extension syntax from #fmt() to #fmt[]
2011-08-03Remove all xfail-stage0 directivesBrian Anderson-2/+0
While it is still technically possible to test stage 0, it is not part of any of the main testing rules and maintaining xfail-stage0 is a chore. Nobody should worry about how tests fare in stage0.
2011-08-02Allow patterns of the form `[a, b, c ...] to be matched and transcribed.Paul Stansifer-2/+2
2011-07-27Fix damage done by the pretty-printerMarijn Haverbeke-6/+2
2011-07-27Reformat for new syntaxMarijn Haverbeke-2/+6
2011-07-14XFAIL some tests in stage 0Brian Anderson-0/+2
2011-07-13Prohibit trailing whitespace under 'tidy' script. Clean up all caught cases.Graydon Hoare-1/+1
2011-07-11Move macro expansion to a separate phase, change macro syntax, and add ↵Paul Stansifer-1/+1
parse_sess to session.
2011-06-28'#simplext' -> '#macro'Paul Stansifer-0/+5