std::backtrace::Backtrace
should filter by __rust_end_short_backtrace
and __rust_begin_short_backtrace
#105413
Labels
C-bug
Category: This is a bug.
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
rustc inserts frames
std::sys_common::backtrace::__rust_end_short_backtrace
andstd::sys_common::backtrace::__rust_begin_short_backtrace
so that the internal backtrace implementation can filter out noise from backtrace capturing.However those are not used when std::backtrace::Backtrace is displayed leading to incredibly verbose backtraces.
Maybe we could perform this filtering for "{}" but provide the unfiltered values for "{:#}"?
I tried this code:
I expected to see this happen:
Instead, this happened:
Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: