rust/src/libsyntax
bors f8f60d80bf auto merge of #12998 : huonw/rust/log_syntax, r=alexcrichton
syntax: allow `trace_macros!` and `log_syntax!` in item position.

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 `()`.
2014-03-24 07:11:59 -07:00
..
ext auto merge of #12998 : huonw/rust/log_syntax, r=alexcrichton 2014-03-24 07:11:59 -07:00
parse use TotalEq for HashMap 2014-03-23 01:59:11 -04:00
print syntax: Fix fallout of removing get() 2014-03-22 08:48:20 -07:00
util std: remove the equals method from TotalEq. 2014-03-23 23:48:10 +11:00
abi.rs use TotalEq for HashMap 2014-03-23 01:59:11 -04:00
ast.rs use TotalEq for HashMap 2014-03-23 01:59:11 -04:00
ast_map.rs syntax: Fix fallout of removing get() 2014-03-22 08:48:20 -07:00
ast_util.rs Migrate all users of opt_vec to owned_slice, delete opt_vec. 2014-03-22 09:54:18 +11:00
attr.rs Removing imports of std::vec_ng::Vec 2014-03-20 09:30:14 -07:00
codemap.rs use TotalEq for HashMap 2014-03-23 01:59:11 -04:00
crateid.rs Removing imports of std::vec_ng::Vec 2014-03-20 09:30:14 -07:00
diagnostic.rs syntax: Fix fallout of removing get() 2014-03-22 08:48:20 -07:00
fold.rs Migrate all users of opt_vec to owned_slice, delete opt_vec. 2014-03-22 09:54:18 +11:00
lib.rs Register new snapshots 2014-03-23 11:37:31 +01:00
owned_slice.rs use TotalEq for HashMap 2014-03-23 01:59:11 -04:00
visit.rs Migrate all users of opt_vec to owned_slice, delete opt_vec. 2014-03-22 09:54:18 +11:00