trace_macros shows nothing if rustc never actually finishes #51960
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
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.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Observed in #51754, the following
main.rs
never shows anything because it never hits an error. The reason that it never hits an error is the focus of #51754, but in summary rustc is performing clones that amount to time spent that is quadratic in the (already exponential) token stream length.
Ideally
trace_macros
should produce output more strictly. I imagine it currently does not due to however it uses the diagnostics API.Probably even once #51754 is fixed this example will still show nothing except
out of memory (core dumped)
.The text was updated successfully, but these errors were encountered: