rust/src/libcoretest
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
..
fmt libcoretest: remove unnecessary as_slice() calls 2014-12-06 19:05:58 -05:00
hash Move hash module from collections to core 2014-12-15 22:48:54 -08:00
num librustc: Always parse macro!()/macro![] as expressions if not 2014-12-18 12:09:07 -05:00
any.rs Rename fail! to panic! 2014-10-29 11:43:07 -04:00
atomic.rs Register new snapshots 2014-10-10 22:09:49 -07:00
cell.rs libcoretest: remove unnecessary as_slice() calls 2014-12-06 19:05:58 -05:00
char.rs std: Change escape_unicode to use new escapes 2014-12-16 08:09:37 -08:00
clone.rs
cmp.rs Remove Signed trait and add SignedInt trait 2014-11-13 03:46:03 +11:00
finally.rs libcoretest: fix fallout 2014-12-13 17:03:45 -05:00
iter.rs librustc: Always parse macro!()/macro![] as expressions if not 2014-12-18 12:09:07 -05:00
lib.rs Move hash module from collections to core 2014-12-15 22:48:54 -08:00
mem.rs Fix fallout 2014-12-03 10:41:48 -05:00
ops.rs
option.rs libcoretest: remove unnecessary as_slice() calls 2014-12-06 19:05:58 -05:00
ptr.rs Remove a large amount of deprecated functionality 2014-10-19 12:59:40 -07:00
raw.rs
result.rs libcoretest: remove unnecessary as_slice() calls 2014-12-06 19:05:58 -05:00
slice.rs Test fixes and rebase conflicts 2014-11-26 16:50:13 -08:00
str.rs libcoretest: fix fallout in unit tests 2014-12-13 17:03:45 -05:00
tuple.rs Tuple test no longer needed. Is already in run-pass tests 2014-12-16 02:42:25 -05:00