Skip to content

Commit 7050c5b

Browse files
committed
Remove unimplemented() function
1 parent 316e05b commit 7050c5b

File tree

1 file changed

+2
-8
lines changed
  • src/libcompiler_builtins

1 file changed

+2
-8
lines changed

src/libcompiler_builtins/lib.rs

+2-8
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@ pub mod reimpls {
4646
#[cfg(not(stage0))]
4747
type i128_ = i128;
4848

49-
fn unimplemented() -> ! {
50-
unsafe { ::core::intrinsics::abort() }
51-
}
52-
5349
macro_rules! ashl {
5450
($a:expr, $b:expr, $ty:ty) => {{
5551
let (a, b) = ($a, $b);
@@ -603,8 +599,7 @@ pub mod reimpls {
603599
match a.signum() {
604600
1 => u128_as_f64(a.uabs()),
605601
0 => 0.0,
606-
-1 => -u128_as_f64(a.uabs()),
607-
_ => unimplemented()
602+
_ => -u128_as_f64(a.uabs()),
608603
}
609604
}
610605

@@ -613,8 +608,7 @@ pub mod reimpls {
613608
match a.signum() {
614609
1 => u128_as_f32(a.uabs()),
615610
0 => 0.0,
616-
-1 => -u128_as_f32(a.uabs()),
617-
_ => unimplemented()
611+
_ => -u128_as_f32(a.uabs()),
618612
}
619613
}
620614

0 commit comments

Comments
 (0)