We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 227eab0 commit 0982a28Copy full SHA for 0982a28
src/libstd/sys_common/backtrace.rs
@@ -154,7 +154,7 @@ fn filter_frames(frames: &[Frame],
154
let skipped_before = frames.iter().position(|frame| {
155
is_good_frame(*frame, BAD_PREFIXES_TOP)
156
}).unwrap_or(frames.len());
157
- let skipped_after = frames[skipped_before..].iter().rposition(|frame| {
+ let skipped_after = frames[skipped_before..].iter().rev().position(|frame| {
158
is_good_frame(*frame, BAD_PREFIXES_BOTTOM)
159
}).unwrap_or(frames.len() - skipped_before);
160
0 commit comments