]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #27000 - alexcrichton:semi-after-type, r=cmr
authorbors <bors@rust-lang.org>
Mon, 13 Jul 2015 13:55:29 +0000 (13:55 +0000)
committerbors <bors@rust-lang.org>
Mon, 13 Jul 2015 13:55:29 +0000 (13:55 +0000)
This commit expands the follow set of the `ty` and `path` macro fragments to
include the semicolon token as well. A semicolon is already allowed after these
tokens, so it's currently a little too restrictive to not have a semicolon
allowed. For example:

    extern {
        fn foo() -> i32; // semicolon after type
    }

    fn main() {
        struct Foo;

        Foo; // semicolon after path
    }


Trivial merge