aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jorge Aparicio <jorge@japaric.io> 2018-09-17 23:38:18 +0200
committerGravatar Jorge Aparicio <jorge@japaric.io> 2018-09-18 00:59:48 +0200
commit85ba898dc80d14dc35dd21abab7684bb1ea0f4c8 (patch)
tree19d86d946830004eba84c4767217e4d99c697359
parent98ce8a1f5d30e3c5c421c0e9c19c078cea7c0473 (diff)
downloadcortex-m-85ba898dc80d14dc35dd21abab7684bb1ea0f4c8.tar.gz
cortex-m-85ba898dc80d14dc35dd21abab7684bb1ea0f4c8.tar.zst
cortex-m-85ba898dc80d14dc35dd21abab7684bb1ea0f4c8.zip
use panic-halt instead of panic-{abort,semihosting}
the former requires a feature gate; the later pulls in the cortex-m crate
-rw-r--r--cortex-m-rt/Cargo.toml3
-rw-r--r--cortex-m-rt/examples/alignment.rs2
-rw-r--r--cortex-m-rt/examples/data_overflow.rs2
-rw-r--r--cortex-m-rt/examples/device.rs2
-rw-r--r--cortex-m-rt/examples/divergent-default-handler.rs2
-rw-r--r--cortex-m-rt/examples/divergent-exception.rs2
-rw-r--r--cortex-m-rt/examples/entry-static.rs2
-rw-r--r--cortex-m-rt/examples/main.rs2
-rw-r--r--cortex-m-rt/examples/minimal.rs2
-rw-r--r--cortex-m-rt/examples/override-exception.rs2
-rw-r--r--cortex-m-rt/examples/pre_init.rs2
-rw-r--r--cortex-m-rt/examples/rand.rs2
-rw-r--r--cortex-m-rt/examples/state.rs2
-rw-r--r--cortex-m-rt/examples/unsafe-default-handler.rs2
-rw-r--r--cortex-m-rt/examples/unsafe-entry.rs2
-rw-r--r--cortex-m-rt/examples/unsafe-exception.rs2
-rw-r--r--cortex-m-rt/examples/unsafe-hard-fault.rs2
-rw-r--r--cortex-m-rt/tests/compile-fail/default-handler-bad-signature-1.rs2
-rw-r--r--cortex-m-rt/tests/compile-fail/default-handler-bad-signature-2.rs2
-rw-r--r--cortex-m-rt/tests/compile-fail/default-handler-hidden.rs2
-rw-r--r--cortex-m-rt/tests/compile-fail/default-handler-twice.rs2
-rw-r--r--cortex-m-rt/tests/compile-fail/entry-args.rs2
-rw-r--r--cortex-m-rt/tests/compile-fail/entry-bad-signature-1.rs2
-rw-r--r--cortex-m-rt/tests/compile-fail/entry-bad-signature-2.rs2
-rw-r--r--cortex-m-rt/tests/compile-fail/entry-bad-signature-3.rs2
-rw-r--r--cortex-m-rt/tests/compile-fail/entry-hidden.rs2
-rw-r--r--cortex-m-rt/tests/compile-fail/entry-soundness.rs2
-rw-r--r--cortex-m-rt/tests/compile-fail/entry-twice.rs2
-rw-r--r--cortex-m-rt/tests/compile-fail/exception-args.rs2
-rw-r--r--cortex-m-rt/tests/compile-fail/exception-bad-signature-1.rs2
-rw-r--r--cortex-m-rt/tests/compile-fail/exception-bad-signature-2.rs2
-rw-r--r--cortex-m-rt/tests/compile-fail/exception-hidden.rs2
-rw-r--r--cortex-m-rt/tests/compile-fail/exception-soundness.rs2
-rw-r--r--cortex-m-rt/tests/compile-fail/exception-twice.rs2
-rw-r--r--cortex-m-rt/tests/compile-fail/hard-fault-bad-signature-1.rs2
-rw-r--r--cortex-m-rt/tests/compile-fail/hard-fault-hidden.rs2
-rw-r--r--cortex-m-rt/tests/compile-fail/hard-fault-twice.rs2
-rw-r--r--cortex-m-rt/tests/compile-fail/pre-init-args.rs2
-rw-r--r--cortex-m-rt/tests/compile-fail/pre-init-bad-signature-1.rs2
-rw-r--r--cortex-m-rt/tests/compile-fail/pre-init-bad-signature-2.rs2
-rw-r--r--cortex-m-rt/tests/compile-fail/pre-init-hidden.rs2
-rw-r--r--cortex-m-rt/tests/compile-fail/pre-init-twice.rs2
42 files changed, 42 insertions, 43 deletions
diff --git a/cortex-m-rt/Cargo.toml b/cortex-m-rt/Cargo.toml
index 41a958d..ae72260 100644
--- a/cortex-m-rt/Cargo.toml
+++ b/cortex-m-rt/Cargo.toml
@@ -16,8 +16,7 @@ cortex-m-rt-macros = { path = "macros", version = "0.1.1" }
[dev-dependencies]
cortex-m = "0.5.4"
-panic-abort = "0.3.0"
-panic-semihosting = "0.4.0"
+panic-halt = "0.2.0"
[dev-dependencies.rand]
default-features = false
diff --git a/cortex-m-rt/examples/alignment.rs b/cortex-m-rt/examples/alignment.rs
index 25d755d..4421e69 100644
--- a/cortex-m-rt/examples/alignment.rs
+++ b/cortex-m-rt/examples/alignment.rs
@@ -5,7 +5,7 @@
#![no_std]
extern crate cortex_m_rt as rt;
-extern crate panic_abort;
+extern crate panic_halt;
use core::ptr;
diff --git a/cortex-m-rt/examples/data_overflow.rs b/cortex-m-rt/examples/data_overflow.rs
index ceec18b..ea48b23 100644
--- a/cortex-m-rt/examples/data_overflow.rs
+++ b/cortex-m-rt/examples/data_overflow.rs
@@ -6,7 +6,7 @@
#![no_std]
extern crate cortex_m_rt as rt;
-extern crate panic_abort;
+extern crate panic_halt;
use core::ptr;
diff --git a/cortex-m-rt/examples/device.rs b/cortex-m-rt/examples/device.rs
index 950a564..dc1c738 100644
--- a/cortex-m-rt/examples/device.rs
+++ b/cortex-m-rt/examples/device.rs
@@ -6,7 +6,7 @@
#![no_std]
extern crate cortex_m_rt as rt;
-extern crate panic_semihosting;
+extern crate panic_halt;
use rt::entry;
diff --git a/cortex-m-rt/examples/divergent-default-handler.rs b/cortex-m-rt/examples/divergent-default-handler.rs
index cbb8bb1..22fa437 100644
--- a/cortex-m-rt/examples/divergent-default-handler.rs
+++ b/cortex-m-rt/examples/divergent-default-handler.rs
@@ -4,7 +4,7 @@
#![no_std]
extern crate cortex_m_rt;
-extern crate panic_semihosting;
+extern crate panic_halt;
use cortex_m_rt::{entry, exception};
diff --git a/cortex-m-rt/examples/divergent-exception.rs b/cortex-m-rt/examples/divergent-exception.rs
index 9998884..cb2247b 100644
--- a/cortex-m-rt/examples/divergent-exception.rs
+++ b/cortex-m-rt/examples/divergent-exception.rs
@@ -3,7 +3,7 @@
#![no_std]
extern crate cortex_m_rt;
-extern crate panic_semihosting;
+extern crate panic_halt;
use cortex_m_rt::{entry, exception};
diff --git a/cortex-m-rt/examples/entry-static.rs b/cortex-m-rt/examples/entry-static.rs
index 1b2e118..55e7a89 100644
--- a/cortex-m-rt/examples/entry-static.rs
+++ b/cortex-m-rt/examples/entry-static.rs
@@ -6,7 +6,7 @@
#![no_std]
extern crate cortex_m_rt as rt;
-extern crate panic_semihosting;
+extern crate panic_halt;
use rt::entry;
diff --git a/cortex-m-rt/examples/main.rs b/cortex-m-rt/examples/main.rs
index e5ce3d1..b8ab66e 100644
--- a/cortex-m-rt/examples/main.rs
+++ b/cortex-m-rt/examples/main.rs
@@ -5,7 +5,7 @@
#![no_std]
extern crate cortex_m_rt as rt;
-extern crate panic_semihosting;
+extern crate panic_halt;
#[no_mangle]
pub unsafe extern "C" fn main() -> ! {
diff --git a/cortex-m-rt/examples/minimal.rs b/cortex-m-rt/examples/minimal.rs
index 6f60180..bd0a6ad 100644
--- a/cortex-m-rt/examples/minimal.rs
+++ b/cortex-m-rt/examples/minimal.rs
@@ -6,7 +6,7 @@
#![no_std]
extern crate cortex_m_rt as rt;
-extern crate panic_semihosting;
+extern crate panic_halt;
use rt::entry;
diff --git a/cortex-m-rt/examples/override-exception.rs b/cortex-m-rt/examples/override-exception.rs
index 3e0af25..6da6c5e 100644
--- a/cortex-m-rt/examples/override-exception.rs
+++ b/cortex-m-rt/examples/override-exception.rs
@@ -7,7 +7,7 @@
extern crate cortex_m;
extern crate cortex_m_rt as rt;
-extern crate panic_semihosting;
+extern crate panic_halt;
use cortex_m::asm;
use rt::{entry, exception, ExceptionFrame};
diff --git a/cortex-m-rt/examples/pre_init.rs b/cortex-m-rt/examples/pre_init.rs
index 00e2f2c..2c931bb 100644
--- a/cortex-m-rt/examples/pre_init.rs
+++ b/cortex-m-rt/examples/pre_init.rs
@@ -5,7 +5,7 @@
#![no_std]
extern crate cortex_m_rt as rt;
-extern crate panic_semihosting;
+extern crate panic_halt;
use rt::{entry, pre_init};
diff --git a/cortex-m-rt/examples/rand.rs b/cortex-m-rt/examples/rand.rs
index e0cfd31..ec3afaa 100644
--- a/cortex-m-rt/examples/rand.rs
+++ b/cortex-m-rt/examples/rand.rs
@@ -7,7 +7,7 @@
extern crate cortex_m_rt as rt;
use rt::entry;
-extern crate panic_semihosting;
+extern crate panic_halt;
extern crate rand;
use rand::Rng;
diff --git a/cortex-m-rt/examples/state.rs b/cortex-m-rt/examples/state.rs
index 573914f..ee6224d 100644
--- a/cortex-m-rt/examples/state.rs
+++ b/cortex-m-rt/examples/state.rs
@@ -6,7 +6,7 @@
#![no_std]
extern crate cortex_m_rt as rt;
-extern crate panic_semihosting;
+extern crate panic_halt;
use rt::{entry, exception};
diff --git a/cortex-m-rt/examples/unsafe-default-handler.rs b/cortex-m-rt/examples/unsafe-default-handler.rs
index 48bd31e..a805c12 100644
--- a/cortex-m-rt/examples/unsafe-default-handler.rs
+++ b/cortex-m-rt/examples/unsafe-default-handler.rs
@@ -3,7 +3,7 @@
#![no_std]
extern crate cortex_m_rt;
-extern crate panic_semihosting;
+extern crate panic_halt;
use cortex_m_rt::{entry, exception};
diff --git a/cortex-m-rt/examples/unsafe-entry.rs b/cortex-m-rt/examples/unsafe-entry.rs
index feb6f44..9dcbf33 100644
--- a/cortex-m-rt/examples/unsafe-entry.rs
+++ b/cortex-m-rt/examples/unsafe-entry.rs
@@ -3,7 +3,7 @@
#![no_std]
extern crate cortex_m_rt;
-extern crate panic_semihosting;
+extern crate panic_halt;
use cortex_m_rt::entry;
diff --git a/cortex-m-rt/examples/unsafe-exception.rs b/cortex-m-rt/examples/unsafe-exception.rs
index d67f06f..4212610 100644
--- a/cortex-m-rt/examples/unsafe-exception.rs
+++ b/cortex-m-rt/examples/unsafe-exception.rs
@@ -3,7 +3,7 @@
#![no_std]
extern crate cortex_m_rt;
-extern crate panic_semihosting;
+extern crate panic_halt;
use cortex_m_rt::{entry, exception};
diff --git a/cortex-m-rt/examples/unsafe-hard-fault.rs b/cortex-m-rt/examples/unsafe-hard-fault.rs
index b091d47..b1d48f3 100644
--- a/cortex-m-rt/examples/unsafe-hard-fault.rs
+++ b/cortex-m-rt/examples/unsafe-hard-fault.rs
@@ -3,7 +3,7 @@
#![no_std]
extern crate cortex_m_rt;
-extern crate panic_semihosting;
+extern crate panic_halt;
use cortex_m_rt::{entry, exception, ExceptionFrame};
diff --git a/cortex-m-rt/tests/compile-fail/default-handler-bad-signature-1.rs b/cortex-m-rt/tests/compile-fail/default-handler-bad-signature-1.rs
index 037e9c8..72ea0fa 100644
--- a/cortex-m-rt/tests/compile-fail/default-handler-bad-signature-1.rs
+++ b/cortex-m-rt/tests/compile-fail/default-handler-bad-signature-1.rs
@@ -2,7 +2,7 @@
#![no_std]
extern crate cortex_m_rt;
-extern crate panic_semihosting;
+extern crate panic_halt;
use cortex_m_rt::{entry, exception};
diff --git a/cortex-m-rt/tests/compile-fail/default-handler-bad-signature-2.rs b/cortex-m-rt/tests/compile-fail/default-handler-bad-signature-2.rs
index 8fc4a7e..2e46a6b 100644
--- a/cortex-m-rt/tests/compile-fail/default-handler-bad-signature-2.rs
+++ b/cortex-m-rt/tests/compile-fail/default-handler-bad-signature-2.rs
@@ -2,7 +2,7 @@
#![no_std]
extern crate cortex_m_rt;
-extern crate panic_semihosting;
+extern crate panic_halt;
use cortex_m_rt::{entry, exception};
diff --git a/cortex-m-rt/tests/compile-fail/default-handler-hidden.rs b/cortex-m-rt/tests/compile-fail/default-handler-hidden.rs
index 059c10b..e57cb31 100644
--- a/cortex-m-rt/tests/compile-fail/default-handler-hidden.rs
+++ b/cortex-m-rt/tests/compile-fail/default-handler-hidden.rs
@@ -5,7 +5,7 @@
#![no_std]
extern crate cortex_m_rt;
-extern crate panic_semihosting;
+extern crate panic_halt;
use cortex_m_rt::{entry, exception};
diff --git a/cortex-m-rt/tests/compile-fail/default-handler-twice.rs b/cortex-m-rt/tests/compile-fail/default-handler-twice.rs
index 7d6ad98..ad1c3f9 100644
--- a/cortex-m-rt/tests/compile-fail/default-handler-twice.rs
+++ b/cortex-m-rt/tests/compile-fail/default-handler-twice.rs
@@ -2,7 +2,7 @@
#![no_std]
extern crate cortex_m_rt;
-extern crate panic_semihosting;
+extern crate panic_halt;
use cortex_m_rt::{entry, exception};
diff --git a/cortex-m-rt/tests/compile-fail/entry-args.rs b/cortex-m-rt/tests/compile-fail/entry-args.rs
index 07cb4bd..b0d293c 100644
--- a/cortex-m-rt/tests/compile-fail/entry-args.rs
+++ b/cortex-m-rt/tests/compile-fail/entry-args.rs
@@ -2,7 +2,7 @@
#![no_std]
extern crate cortex_m_rt;
-extern crate panic_semihosting;
+extern crate panic_halt;
use cortex_m_rt::entry;
diff --git a/cortex-m-rt/tests/compile-fail/entry-bad-signature-1.rs b/cortex-m-rt/tests/compile-fail/entry-bad-signature-1.rs
index 5eeb49f..5fe9a1a 100644
--- a/cortex-m-rt/tests/compile-fail/entry-bad-signature-1.rs
+++ b/cortex-m-rt/tests/compile-fail/entry-bad-signature-1.rs
@@ -2,7 +2,7 @@
#![no_std]
extern crate cortex_m_rt;
-extern crate panic_semihosting;
+extern crate panic_halt;
use cortex_m_rt::entry;
diff --git a/cortex-m-rt/tests/compile-fail/entry-bad-signature-2.rs b/cortex-m-rt/tests/compile-fail/entry-bad-signature-2.rs
index 18bbaed..2b71a57 100644
--- a/cortex-m-rt/tests/compile-fail/entry-bad-signature-2.rs
+++ b/cortex-m-rt/tests/compile-fail/entry-bad-signature-2.rs
@@ -2,7 +2,7 @@
#![no_std]
extern crate cortex_m_rt;
-extern crate panic_semihosting;
+extern crate panic_halt;
use cortex_m_rt::entry;
diff --git a/cortex-m-rt/tests/compile-fail/entry-bad-signature-3.rs b/cortex-m-rt/tests/compile-fail/entry-bad-signature-3.rs
index 09b75e9..463e5b7 100644
--- a/cortex-m-rt/tests/compile-fail/entry-bad-signature-3.rs
+++ b/cortex-m-rt/tests/compile-fail/entry-bad-signature-3.rs
@@ -2,7 +2,7 @@
#![no_std]
extern crate cortex_m_rt;
-extern crate panic_semihosting;
+extern crate panic_halt;
use cortex_m_rt::entry;
diff --git a/cortex-m-rt/tests/compile-fail/entry-hidden.rs b/cortex-m-rt/tests/compile-fail/entry-hidden.rs
index 7d74063..836db0d 100644
--- a/cortex-m-rt/tests/compile-fail/entry-hidden.rs
+++ b/cortex-m-rt/tests/compile-fail/entry-hidden.rs
@@ -5,7 +5,7 @@
#![no_std]
extern crate cortex_m_rt;
-extern crate panic_semihosting;
+extern crate panic_halt;
mod hidden {
use cortex_m_rt::entry;
diff --git a/cortex-m-rt/tests/compile-fail/entry-soundness.rs b/cortex-m-rt/tests/compile-fail/entry-soundness.rs
index 5e40a8f..9fc8ec1 100644
--- a/cortex-m-rt/tests/compile-fail/entry-soundness.rs
+++ b/cortex-m-rt/tests/compile-fail/entry-soundness.rs
@@ -2,7 +2,7 @@
#![no_std]
extern crate cortex_m_rt;
-extern crate panic_semihosting;
+extern crate panic_halt;
use cortex_m_rt::{entry, exception};
diff --git a/cortex-m-rt/tests/compile-fail/entry-twice.rs b/cortex-m-rt/tests/compile-fail/entry-twice.rs
index b2819f6..757083a 100644
--- a/cortex-m-rt/tests/compile-fail/entry-twice.rs
+++ b/cortex-m-rt/tests/compile-fail/entry-twice.rs
@@ -2,7 +2,7 @@
#![no_std]
extern crate cortex_m_rt;
-extern crate panic_semihosting;
+extern crate panic_halt;
use cortex_m_rt::entry;
diff --git a/cortex-m-rt/tests/compile-fail/exception-args.rs b/cortex-m-rt/tests/compile-fail/exception-args.rs
index 85613ff..472a583 100644
--- a/cortex-m-rt/tests/compile-fail/exception-args.rs
+++ b/cortex-m-rt/tests/compile-fail/exception-args.rs
@@ -2,7 +2,7 @@
#![no_std]
extern crate cortex_m_rt;
-extern crate panic_semihosting;
+extern crate panic_halt;
use cortex_m_rt::{entry, exception};
diff --git a/cortex-m-rt/tests/compile-fail/exception-bad-signature-1.rs b/cortex-m-rt/tests/compile-fail/exception-bad-signature-1.rs
index 966493e..e1fbf31 100644
--- a/cortex-m-rt/tests/compile-fail/exception-bad-signature-1.rs
+++ b/cortex-m-rt/tests/compile-fail/exception-bad-signature-1.rs
@@ -2,7 +2,7 @@
#![no_std]
extern crate cortex_m_rt;
-extern crate panic_semihosting;
+extern crate panic_halt;
use cortex_m_rt::{entry, exception};
diff --git a/cortex-m-rt/tests/compile-fail/exception-bad-signature-2.rs b/cortex-m-rt/tests/compile-fail/exception-bad-signature-2.rs
index 8504771..ed46cf6 100644
--- a/cortex-m-rt/tests/compile-fail/exception-bad-signature-2.rs
+++ b/cortex-m-rt/tests/compile-fail/exception-bad-signature-2.rs
@@ -2,7 +2,7 @@
#![no_std]
extern crate cortex_m_rt;
-extern crate panic_semihosting;
+extern crate panic_halt;
use cortex_m_rt::{entry, exception};
diff --git a/cortex-m-rt/tests/compile-fail/exception-hidden.rs b/cortex-m-rt/tests/compile-fail/exception-hidden.rs
index 053c81c..6f57089 100644
--- a/cortex-m-rt/tests/compile-fail/exception-hidden.rs
+++ b/cortex-m-rt/tests/compile-fail/exception-hidden.rs
@@ -5,7 +5,7 @@
#![no_std]
extern crate cortex_m_rt;
-extern crate panic_semihosting;
+extern crate panic_halt;
use cortex_m_rt::{entry, exception};
diff --git a/cortex-m-rt/tests/compile-fail/exception-soundness.rs b/cortex-m-rt/tests/compile-fail/exception-soundness.rs
index 07d73fa..aae2476 100644
--- a/cortex-m-rt/tests/compile-fail/exception-soundness.rs
+++ b/cortex-m-rt/tests/compile-fail/exception-soundness.rs
@@ -2,7 +2,7 @@
#![no_std]
extern crate cortex_m_rt;
-extern crate panic_semihosting;
+extern crate panic_halt;
use cortex_m_rt::{entry, exception};
diff --git a/cortex-m-rt/tests/compile-fail/exception-twice.rs b/cortex-m-rt/tests/compile-fail/exception-twice.rs
index 5377fce..aabbe5a 100644
--- a/cortex-m-rt/tests/compile-fail/exception-twice.rs
+++ b/cortex-m-rt/tests/compile-fail/exception-twice.rs
@@ -2,7 +2,7 @@
#![no_std]
extern crate cortex_m_rt;
-extern crate panic_semihosting;
+extern crate panic_halt;
use cortex_m_rt::{entry, exception};
diff --git a/cortex-m-rt/tests/compile-fail/hard-fault-bad-signature-1.rs b/cortex-m-rt/tests/compile-fail/hard-fault-bad-signature-1.rs
index 83fda5f..c2e9c31 100644
--- a/cortex-m-rt/tests/compile-fail/hard-fault-bad-signature-1.rs
+++ b/cortex-m-rt/tests/compile-fail/hard-fault-bad-signature-1.rs
@@ -2,7 +2,7 @@
#![no_std]
extern crate cortex_m_rt;
-extern crate panic_semihosting;
+extern crate panic_halt;
use cortex_m_rt::{entry, exception, ExceptionFrame};
diff --git a/cortex-m-rt/tests/compile-fail/hard-fault-hidden.rs b/cortex-m-rt/tests/compile-fail/hard-fault-hidden.rs
index 31237c4..956310b 100644
--- a/cortex-m-rt/tests/compile-fail/hard-fault-hidden.rs
+++ b/cortex-m-rt/tests/compile-fail/hard-fault-hidden.rs
@@ -5,7 +5,7 @@
#![no_std]
extern crate cortex_m_rt;
-extern crate panic_semihosting;
+extern crate panic_halt;
use cortex_m_rt::{entry, exception, ExceptionFrame};
diff --git a/cortex-m-rt/tests/compile-fail/hard-fault-twice.rs b/cortex-m-rt/tests/compile-fail/hard-fault-twice.rs
index 90270e5..0bb6c8c 100644
--- a/cortex-m-rt/tests/compile-fail/hard-fault-twice.rs
+++ b/cortex-m-rt/tests/compile-fail/hard-fault-twice.rs
@@ -2,7 +2,7 @@
#![no_std]
extern crate cortex_m_rt;
-extern crate panic_semihosting;
+extern crate panic_halt;
use cortex_m_rt::{entry, exception, ExceptionFrame};
diff --git a/cortex-m-rt/tests/compile-fail/pre-init-args.rs b/cortex-m-rt/tests/compile-fail/pre-init-args.rs
index 716b211..94d87bd 100644
--- a/cortex-m-rt/tests/compile-fail/pre-init-args.rs
+++ b/cortex-m-rt/tests/compile-fail/pre-init-args.rs
@@ -2,7 +2,7 @@
#![no_std]
extern crate cortex_m_rt;
-extern crate panic_semihosting;
+extern crate panic_halt;
use cortex_m_rt::{entry, pre_init};
diff --git a/cortex-m-rt/tests/compile-fail/pre-init-bad-signature-1.rs b/cortex-m-rt/tests/compile-fail/pre-init-bad-signature-1.rs
index 58d3022..249f477 100644
--- a/cortex-m-rt/tests/compile-fail/pre-init-bad-signature-1.rs
+++ b/cortex-m-rt/tests/compile-fail/pre-init-bad-signature-1.rs
@@ -2,7 +2,7 @@
#![no_std]
extern crate cortex_m_rt;
-extern crate panic_semihosting;
+extern crate panic_halt;
use cortex_m_rt::{entry, pre_init};
diff --git a/cortex-m-rt/tests/compile-fail/pre-init-bad-signature-2.rs b/cortex-m-rt/tests/compile-fail/pre-init-bad-signature-2.rs
index e47ed59..e942542 100644
--- a/cortex-m-rt/tests/compile-fail/pre-init-bad-signature-2.rs
+++ b/cortex-m-rt/tests/compile-fail/pre-init-bad-signature-2.rs
@@ -2,7 +2,7 @@
#![no_std]
extern crate cortex_m_rt;
-extern crate panic_semihosting;
+extern crate panic_halt;
use cortex_m_rt::{entry, pre_init};
diff --git a/cortex-m-rt/tests/compile-fail/pre-init-hidden.rs b/cortex-m-rt/tests/compile-fail/pre-init-hidden.rs
index f512d62..63ab90b 100644
--- a/cortex-m-rt/tests/compile-fail/pre-init-hidden.rs
+++ b/cortex-m-rt/tests/compile-fail/pre-init-hidden.rs
@@ -5,7 +5,7 @@
#![no_std]
extern crate cortex_m_rt;
-extern crate panic_semihosting;
+extern crate panic_halt;
mod hidden {
use cortex_m_rt::pre_init;
diff --git a/cortex-m-rt/tests/compile-fail/pre-init-twice.rs b/cortex-m-rt/tests/compile-fail/pre-init-twice.rs
index 5fb1ade..74a3f6b 100644
--- a/cortex-m-rt/tests/compile-fail/pre-init-twice.rs
+++ b/cortex-m-rt/tests/compile-fail/pre-init-twice.rs
@@ -2,7 +2,7 @@
#![no_std]
extern crate cortex_m_rt;
-extern crate panic_semihosting;
+extern crate panic_halt;
use cortex_m_rt::{entry, pre_init};