trace_macro: Show both the macro call and its expansion. #42072.

This commit is contained in:
Jason Orendorff 2017-05-19 13:43:06 -05:00
parent b21577e1e8
commit f8b66a001d
2 changed files with 17 additions and 5 deletions

View file

@ -4,6 +4,9 @@ note: trace_macro
14 | println!("Hello, World!");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: expands to `println! { "Hello, World!" }`
= note: expands to `print! { concat ! ( "Hello, World!" , "/n" ) }`
= note: expanding `println! { "Hello, World!" }`
= note: to `print ! ( concat ! ( "Hello, World!" , "/n" ) )`
= note: expanding `print! { concat ! ( "Hello, World!" , "/n" ) }`
= note: to `$crate :: io :: _print ( format_args ! ( concat ! ( "Hello, World!" , "/n" ) )
)`