Skip to content

Commit 4e812e5

Browse files
authored
Merge pull request #4034 from rust-lang/rustup-2024-11-15
Automatic Rustup
2 parents 9d9da34 + 99f52a3 commit 4e812e5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
c22887b4d97400e8e024e19fb5f724eda65ad58d
1+
3bc6916f4ca50bb83b211d9013dac38e84618750

src/diagnostics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ pub fn prune_stacktrace<'tcx>(
195195
// This len check ensures that we don't somehow remove every frame, as doing so breaks
196196
// the primary error message.
197197
while stacktrace.len() > 1
198-
&& stacktrace.last().map_or(false, |frame| !machine.is_local(frame))
198+
&& stacktrace.last().is_some_and(|frame| !machine.is_local(frame))
199199
{
200200
stacktrace.pop();
201201
}

0 commit comments

Comments
 (0)