We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26a7772 commit b911657Copy full SHA for b911657
src/tools/miri/src/diagnostics.rs
@@ -195,7 +195,7 @@ pub fn prune_stacktrace<'tcx>(
195
// This len check ensures that we don't somehow remove every frame, as doing so breaks
196
// the primary error message.
197
while stacktrace.len() > 1
198
- && stacktrace.last().map_or(false, |frame| !machine.is_local(frame))
+ && stacktrace.last().is_some_and(|frame| !machine.is_local(frame))
199
{
200
stacktrace.pop();
201
}
0 commit comments