1
Fork 0

Modernize macro_rules! invocations

macro_rules! is like an item that defines a macro.  Other items don't have a
trailing semicolon, or use a paren-delimited body.

If there's an argument for matching the invocation syntax, e.g. parentheses for
an expr macro, then I think that applies more strongly to the *inner*
delimiters on the LHS, wrapping the individual argument patterns.
This commit is contained in:
Keegan McAllister 2015-01-02 14:44:21 -08:00
parent c9f0ff3813
commit 416137eb31
76 changed files with 355 additions and 325 deletions

View file

@ -21,7 +21,7 @@ pub mod m1 {
}
}
macro_rules! indirect_line( () => ( line!() ) );
macro_rules! indirect_line { () => ( line!() ) }
pub fn main() {
assert_eq!(line!(), 27);