Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 41a2260

Browse files
tiifbjorn3
andauthored
Use unreachable instead of panic
Co-authored-by: bjorn3 <[email protected]>
1 parent e74fe7a commit 41a2260

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_target/src/callconv

1 file changed

+1
-1
lines changed

compiler/rustc_target/src/callconv/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ fn conv_to_externabi(conv: &Conv) -> ExternAbi {
919919
Conv::AvrNonBlockingInterrupt => ExternAbi::AvrNonBlockingInterrupt,
920920
Conv::RiscvInterrupt { kind: RiscvInterruptKind::Machine } => ExternAbi::RiscvInterruptM,
921921
Conv::RiscvInterrupt { kind: RiscvInterruptKind::Supervisor } => ExternAbi::RiscvInterruptS,
922-
Conv::Cold | Conv::PreserveAll => panic!("This is deadcode"),
922+
Conv::Cold | Conv::PreserveAll => unreachable!(),
923923
}
924924
}
925925

0 commit comments

Comments
 (0)