]> git.lizzy.rs Git - rust.git/commitdiff
auto merge of #9673 : huonw/rust/macros, r=catamorphism
authorbors <bors@rust-lang.org>
Wed, 2 Oct 2013 11:21:26 +0000 (04:21 -0700)
committerbors <bors@rust-lang.org>
Wed, 2 Oct 2013 11:21:26 +0000 (04:21 -0700)
That is, only a single expression or item gets parsed, so if there are
any extra tokens (e.g. the start of another item/expression) the user
should be told, rather than silently dropping them.

An example:

    macro_rules! foo {
        () => {
            println("hi");
            println("bye);
        }
    }

would expand to just `println("hi")`, which is almost certainly not
what the programmer wanted.

Fixes #8012.


Trivial merge