Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upCollapse cross-crate macros in error backtraces #24188
Comments
huonw
added
A-diagnostics
A-macros
labels
Apr 8, 2015
This comment has been minimized.
This comment has been minimized.
|
In the case of libstd macros and so forth, it's unclear that we even want the "expansion site". |
This comment has been minimized.
This comment has been minimized.
|
This case looks better today. |
brson
closed this
Dec 1, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
huonw commentedApr 8, 2015
Errors inside macros currently get some serious and intimidating compiler-spew, e.g.
gives
Most of the
<std macros>lines are useless, as they're talking about implementation details ofprintln!that the user has no control over (the macro is defined in another crate) and almost certainly doesn't care about. It would be much nicer if they were just collapsed to only print the outer call:There's a few edge-cases I can think of:
--verboseis passed.