rust/src/libsyntax/ext
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
..
deriving std: remove the equals method from TotalEq. 2014-03-23 23:48:10 +11:00
tt syntax: Fix fallout of removing get() 2014-03-22 08:48:20 -07:00
asm.rs Removing imports of std::vec_ng::Vec 2014-03-20 09:30:14 -07:00
base.rs auto merge of #12998 : huonw/rust/log_syntax, r=alexcrichton 2014-03-24 07:11:59 -07:00
build.rs syntax: Fix fallout of removing get() 2014-03-22 08:48:20 -07:00
bytes.rs Removing imports of std::vec_ng::Vec 2014-03-20 09:30:14 -07:00
cfg.rs Removing imports of std::vec_ng::Vec 2014-03-20 09:30:14 -07:00
concat.rs Expand string literals and exprs inside of macros 2014-03-02 14:12:02 -08:00
concat_idents.rs Migrate all users of opt_vec to owned_slice, delete opt_vec. 2014-03-22 09:54:18 +11:00
env.rs Removing imports of std::vec_ng::Vec 2014-03-20 09:30:14 -07:00
expand.rs Removing imports of std::vec_ng::Vec 2014-03-20 09:30:14 -07:00
fmt.rs libsyntax: Renamed types, traits and enum variants to CamelCase. 2014-01-09 22:25:28 +02:00
format.rs Removing imports of std::vec_ng::Vec 2014-03-20 09:30:14 -07:00
log_syntax.rs syntax: allow trace_macros! and log_syntax! in item position. 2014-03-22 01:27:23 +11:00
mtwt.rs syntax: Fix fallout of removing get() 2014-03-22 08:48:20 -07:00
quote.rs Removing imports of std::vec_ng::Vec 2014-03-20 09:30:14 -07:00
registrar.rs Removing imports of std::vec_ng::Vec 2014-03-20 09:30:14 -07:00
source_util.rs syntax: Fix fallout of removing get() 2014-03-22 08:48:20 -07:00
trace_macros.rs syntax: allow trace_macros! and log_syntax! in item position. 2014-03-22 01:27:23 +11:00