Better runtime panic message for RefCell borrow #74472
Labels
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-libs
Relevant to the library team, which will review and decide on the PR/issue.
Uh oh!
There was an error while loading. Please reload this page.
Backtrace number 17 is finally helpful.
What about just show it in panic info instead of
thread 'main' panicked at 'already mutably borrowed: BorrowError', /home/cg/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libcore/cell.rs:797:9
this crapOr at least have a Backtrace mode that only shows user code trace, I think it would be helpful as I cannot tell whats the different between
BACKTRACE=1
andBACKTRACE=full
, both are very long and not intuitiveThe text was updated successfully, but these errors were encountered: