Extend filtering of backtrace frames a bit (#21573)
Both rust_begin_unwind and _rust_begin_unwind appear in practice, not sure why. Release Notes: - N/A
This commit is contained in:
parent
7335f211fd
commit
92dea066dd
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ pub fn init_panic_hook(
|
|||
// Strip out leading stack frames for rust panic-handling.
|
||||
if let Some(ix) = backtrace
|
||||
.iter()
|
||||
.position(|name| name == "rust_begin_unwind")
|
||||
.position(|name| name == "rust_begin_unwind" || name == "_rust_begin_unwind")
|
||||
{
|
||||
backtrace.drain(0..=ix);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue