rust/src/librustc/metadata
Patrick Walton ddb2466f6a librustc: Always parse macro!()/macro![] as expressions if not
followed by a semicolon.

This allows code like `vec![1i, 2, 3].len();` to work.

This breaks code that uses macros as statements without putting
semicolons after them, such as:

    fn main() {
        ...
        assert!(a == b)
        assert!(c == d)
        println(...);
    }

It also breaks code that uses macros as items without semicolons:

    local_data_key!(foo)

    fn main() {
        println("hello world")
    }

Add semicolons to fix this code. Those two examples can be fixed as
follows:

    fn main() {
        ...
        assert!(a == b);
        assert!(c == d);
        println(...);
    }

    local_data_key!(foo);

    fn main() {
        println("hello world")
    }

RFC #378.

Closes #18635.

[breaking-change]
2014-12-18 12:09:07 -05:00
..
common.rs Parse unsafe trait but do not do anything with it beyond parsing and integrating into rustdoc etc. 2014-12-14 11:11:55 -05:00
creader.rs
csearch.rs librustc: use unboxed closures 2014-12-13 17:03:47 -05:00
cstore.rs auto merge of #19799 : alexcrichton/rust/stop-panicking, r=huonw 2014-12-17 14:33:12 +00:00
decoder.rs Parse unsafe impl but don't do anything particularly interesting with the results. 2014-12-14 11:11:55 -05:00
encoder.rs rollup merge of #19849: alexcrichton/second-pass-option 2014-12-17 11:50:26 -08:00
filesearch.rs librustc: use unboxed closures 2014-12-13 17:03:47 -05:00
loader.rs librustc: use tuple indexing 2014-12-13 20:04:41 -05:00
mod.rs
tydecode.rs Rename FnStyle trait to Unsafety. 2014-12-14 11:11:55 -05:00
tyencode.rs librustc: Always parse macro!()/macro![] as expressions if not 2014-12-18 12:09:07 -05:00