rust/src/librustdoc
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
..
clean auto merge of #19777 : nikomatsakis/rust/warn-on-shadowing, r=acrichto 2014-12-16 08:42:40 +00:00
html librustc: Always parse macro!()/macro![] as expressions if not 2014-12-18 12:09:07 -05:00
core.rs Separate the driver into its own crate that uses trans, typeck. 2014-12-04 10:04:52 -05:00
doctree.rs Parse unsafe impl but don't do anything particularly interesting with the results. 2014-12-14 11:11:55 -05:00
externalfiles.rs
flock.rs
fold.rs librustdoc: fix fallout 2014-12-13 17:03:44 -05:00
lib.rs librustc: Always parse macro!()/macro![] as expressions if not 2014-12-18 12:09:07 -05:00
markdown.rs
passes.rs librustdoc: remove unnecessary as_slice() calls 2014-12-06 19:05:58 -05:00
plugins.rs
stability_summary.rs auto merge of #19448 : japaric/rust/binops-by-value, r=nikomatsakis 2014-12-15 22:11:44 +00:00
test.rs Mostly rote conversion of proc() to move|| (and occasionally Thunk::new) 2014-12-14 04:21:56 -05:00
visit_ast.rs Parse unsafe impl but don't do anything particularly interesting with the results. 2014-12-14 11:11:55 -05:00