about summary refs log tree commit diff
path: root/src/test/compile-fail/trace_macros-format.rs
AgeCommit message (Collapse)AuthorLines
2018-08-14Moved compile-fail tests to ui tests.David Wood-28/+0
2015-01-05Un-gate macro_rulesKeegan McAllister-1/+1
2014-04-06Remove ignore-fast that has cropped upAlex Crichton-1/+0
2014-03-28Convert most code to new inner attribute syntax.Brian Anderson-1/+1
Closes #2569
2014-03-22syntax: allow `trace_macros!` and `log_syntax!` in item position.Huon Wilson-0/+29
Previously trace_macros!(true) fn main() {} would complain about `trace_macros` being an expression macro in item position. This is a pointless limitation, because the macro is purely compile-time, with no runtime effect. (And similarly for log_syntax.) This also changes the behaviour of `trace_macros!` very slightly, it used to be equivalent to macro_rules! trace_macros { (true $($_x: tt)*) => { true }; (false $($_x: tt)*) => { false } } I.e. you could invoke it with arbitrary trailing arguments, which were ignored. It is changed to accept only exactly `true` or `false` (with no trailing arguments) and expands to `()`.