Use unreachable instead of panic
Co-authored-by: bjorn3 <17426603+bjorn3@users.noreply.github.com>
This commit is contained in:
parent
e74fe7a6ad
commit
41a2260bc7
1 changed files with 1 additions and 1 deletions
|
|
@ -919,7 +919,7 @@ fn conv_to_externabi(conv: &Conv) -> ExternAbi {
|
|||
Conv::AvrNonBlockingInterrupt => ExternAbi::AvrNonBlockingInterrupt,
|
||||
Conv::RiscvInterrupt { kind: RiscvInterruptKind::Machine } => ExternAbi::RiscvInterruptM,
|
||||
Conv::RiscvInterrupt { kind: RiscvInterruptKind::Supervisor } => ExternAbi::RiscvInterruptS,
|
||||
Conv::Cold | Conv::PreserveAll => panic!("This is deadcode"),
|
||||
Conv::Cold | Conv::PreserveAll => unreachable!(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue