Skip to content

Commit

Permalink
Unbreak lang team shenanigans on Clippy 1.82.
Browse files Browse the repository at this point in the history
I'm not at all pleased that the lang team thinks it's okay to add a
deny-by-default lint in Clippy where following its instructions breaks
compatibility with, not my older MSRV, but _the previous compiler
version._ Why the compiler can't accept the old 'match x {}' uninhabited
type test, I don't know.

This appears to be the right fix for now.

Upstream bug: rust-lang/rust#129031
  • Loading branch information
cbiffle committed Aug 21, 2024
1 parent cd689de commit db5ee71
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions os/src/exec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ fn poll_task(
) {
match future.poll(&mut Context::from_waker(&waker_for_task(index))) {
Poll::Pending => (),
#[allow(unreachable_patterns)]
Poll::Ready(never) => match never {}
}
}
Expand Down

0 comments on commit db5ee71

Please sign in to comment.