Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
Add __rust_begin_short_backtrace filter (#48)
Browse files Browse the repository at this point in the history
This frame was added for the exact purpose of allowing proper filtering:

rust-lang/rust#47429
  • Loading branch information
yaahc authored Aug 17, 2020
1 parent 7316c8f commit f96519e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,11 @@ impl Frame {
/// Heuristically determine whether a frame is likely to be part of language
/// runtime.
fn is_runtime_init_code(&self) -> bool {
const SYM_PREFIXES: &[&str] =
&["std::rt::lang_start::", "test::run_test::run_test_inner::"];
const SYM_PREFIXES: &[&str] = &[
"std::rt::lang_start::",
"test::run_test::run_test_inner::",
"std::sys_common::backtrace::__rust_begin_short_backtrace",
];

let (name, file) = match (self.name.as_ref(), self.filename.as_ref()) {
(Some(name), Some(filename)) => (name, filename.to_string_lossy()),
Expand Down

0 comments on commit f96519e

Please sign in to comment.