Skip to content

Macro statements need semicolons now. #26

@csouth3

Description

@csouth3

Trying to compile collect with rustc-dev at current HEAD (commit 840de0720) results in:

/home/csouth3/.cargo/registry/src/github.com-1ecc6299db9ec823/collect-0.0.5/src/iter/ordered_iter.rs:311:9: 311:18 error: expected one of `.`, `;`, or `}`, found `assert_eq`
/home/csouth3/.cargo/registry/src/github.com-1ecc6299db9ec823/collect-0.0.5/src/iter/ordered_iter.rs:311         assert_eq!(Some((12, 6, 4)), powers_of_two_and_three.next())
                                                                                                                 ^~~~~~~~~
Could not compile `collect`.

This is because rust-lang/rust#19984 makes it so that macros being used as statements need to be terminated by semicolons.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions