Redundancy in trace_macro
output
#42223
Labels
-Ztrace-macros
Unstable option: trace-macros
A-macros
Area: All kinds of macros (custom derive, macro_rules!, proc macros, ..)
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
S-has-mcve
Status: A Minimal Complete and Verifiable Example has been found for this issue
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
(filed per #42103 (comment) )
trace_macro
output now contains both "before" and "after" text.But often a macro-call expands to another macro-call. In that case, we get redundant lines from
trace_macro
:The second "
expanding
" note is basically the same as the previous line. We could eliminate that.Note that it's also common for a macro-call to expand to code that merely contains another macro-call somewhere, and in that case we probably shouldn't elide anything.
The text was updated successfully, but these errors were encountered: