rust/src/test/pretty/macro.rs
Noah Lev 7ffec7028a rustc_ast_pretty: Don't print space after $
For example, this code:

    $arg:expr

used to be pretty-printed as:

    $ arg : expr

but is now pretty-printed as:

    $arg : expr
2021-07-03 16:35:18 -07:00

7 lines
111 B
Rust

// pp-exact
#![feature(decl_macro)]
pub(crate) macro mac { ($arg : expr) => { $arg + $arg } }
fn main() { }