about summary refs log tree commit diff
path: root/src/rt/sync/rust_thread.cpp
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2013-10-02 14:43:15 +1000
committerHuon Wilson <dbau.pp+github@gmail.com>2013-10-02 14:43:15 +1000
commit8284df9e7c3b26897d65935eaa7acee1a956a450 (patch)
tree394c978dc2b603cf2b28879b67ce405f528c1e17 /src/rt/sync/rust_thread.cpp
parentbbbafc4e466e8026d30b9c47d1f104fd44815bef (diff)
downloadrust-8284df9e7c3b26897d65935eaa7acee1a956a450.tar.gz
rust-8284df9e7c3b26897d65935eaa7acee1a956a450.zip
syntax: indicate an error when a macro ignores trailing tokens.
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.
Diffstat (limited to 'src/rt/sync/rust_thread.cpp')
0 files changed, 0 insertions, 0 deletions