From 0982a2830460e20524d0227f83a21ce4a37c94e5 Mon Sep 17 00:00:00 2001 From: Vadim Petrochenkov Date: Fri, 24 Feb 2017 04:57:16 +0300 Subject: [PATCH] rposition() -> rev().position() (#2) --- src/libstd/sys_common/backtrace.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstd/sys_common/backtrace.rs b/src/libstd/sys_common/backtrace.rs index 74a9893d4bd2a..6618b1dd03ade 100644 --- a/src/libstd/sys_common/backtrace.rs +++ b/src/libstd/sys_common/backtrace.rs @@ -154,7 +154,7 @@ fn filter_frames(frames: &[Frame], let skipped_before = frames.iter().position(|frame| { is_good_frame(*frame, BAD_PREFIXES_TOP) }).unwrap_or(frames.len()); - let skipped_after = frames[skipped_before..].iter().rposition(|frame| { + let skipped_after = frames[skipped_before..].iter().rev().position(|frame| { is_good_frame(*frame, BAD_PREFIXES_BOTTOM) }).unwrap_or(frames.len() - skipped_before);