Skip to content

Commit 390e22b

Browse files
committed
Add __rust_begin_short_backtrace filter
This frame was added for the exact purpose of allowing proper filtering: rust-lang/rust#47429
1 parent 41444d3 commit 390e22b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/lib.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,11 @@ impl Frame {
245245
/// Heuristically determine whether a frame is likely to be part of language
246246
/// runtime.
247247
fn is_runtime_init_code(&self) -> bool {
248-
const SYM_PREFIXES: &[&str] =
249-
&["std::rt::lang_start::", "test::run_test::run_test_inner::"];
248+
const SYM_PREFIXES: &[&str] = &[
249+
"std::rt::lang_start::",
250+
"test::run_test::run_test_inner::",
251+
"std::sys_common::backtrace::__rust_begin_short_backtrace",
252+
];
250253

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

0 commit comments

Comments
 (0)