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.
2 parents 9d9da34 + 99f52a3 commit 4e812e5Copy full SHA for 4e812e5
rust-version
@@ -1 +1 @@
1
-c22887b4d97400e8e024e19fb5f724eda65ad58d
+3bc6916f4ca50bb83b211d9013dac38e84618750
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