diff --git a/Cargo.toml b/Cargo.toml index d956113951..1947110d51 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -66,7 +66,6 @@ version = "0.1.0-alpha.2" [dev-dependencies] lm3s6965 = "0.1.3" -panic-halt = "0.2.0" cortex-m-semihosting = "0.3.3" [dev-dependencies.panic-semihosting] diff --git a/examples/not-send.rs b/examples/not-send.rs index 16a874dc0f..2c5c6dc8a0 100644 --- a/examples/not-send.rs +++ b/examples/not-send.rs @@ -8,7 +8,7 @@ use core::marker::PhantomData; use cortex_m_semihosting::debug; -use panic_halt as _; +use panic_semihosting as _; use rtic::app; pub struct NotSend { diff --git a/examples/not-sync.rs b/examples/not-sync.rs index a7eaac8e7f..fbc76472f0 100644 --- a/examples/not-sync.rs +++ b/examples/not-sync.rs @@ -8,7 +8,7 @@ use core::marker::PhantomData; use cortex_m_semihosting::debug; -use panic_halt as _; +use panic_semihosting as _; pub struct NotSync { _0: PhantomData<*const ()>, diff --git a/examples/schedule.rs b/examples/schedule.rs index 70a7a5e328..be86c387a3 100644 --- a/examples/schedule.rs +++ b/examples/schedule.rs @@ -7,7 +7,7 @@ use cortex_m::peripheral::DWT; use cortex_m_semihosting::hprintln; -use panic_halt as _; +use panic_semihosting as _; use rtic::cyccnt::{Instant, U32Ext as _}; // NOTE: does NOT work on QEMU! diff --git a/examples/shared-with-init.rs b/examples/shared-with-init.rs index bd55f7efd5..153a8eaefd 100644 --- a/examples/shared-with-init.rs +++ b/examples/shared-with-init.rs @@ -7,7 +7,7 @@ use cortex_m_semihosting::debug; use lm3s6965::Interrupt; -use panic_halt as _; +use panic_semihosting as _; use rtic::app; pub struct MustBeSend; diff --git a/examples/t-binds.rs b/examples/t-binds.rs index 588ac46fa6..5dcec492f3 100644 --- a/examples/t-binds.rs +++ b/examples/t-binds.rs @@ -5,7 +5,7 @@ #![no_main] #![no_std] -use panic_halt as _; +use panic_semihosting as _; #[rtic::app(device = lm3s6965)] const APP: () = { diff --git a/examples/t-cfg-resources.rs b/examples/t-cfg-resources.rs index eb00fe5923..94ca938e86 100644 --- a/examples/t-cfg-resources.rs +++ b/examples/t-cfg-resources.rs @@ -3,7 +3,7 @@ #![no_main] #![no_std] -use panic_halt as _; +use panic_semihosting as _; #[rtic::app(device = lm3s6965)] const APP: () = { diff --git a/examples/t-cfg.rs b/examples/t-cfg.rs index 52e6d1c9d3..7b98547ba4 100644 --- a/examples/t-cfg.rs +++ b/examples/t-cfg.rs @@ -3,7 +3,7 @@ #![no_main] #![no_std] -use panic_halt as _; +use panic_semihosting as _; #[rtic::app(device = lm3s6965, monotonic = rtic::cyccnt::CYCCNT)] const APP: () = { diff --git a/examples/t-late-not-send.rs b/examples/t-late-not-send.rs index c464e73b64..8b2aa5f94f 100644 --- a/examples/t-late-not-send.rs +++ b/examples/t-late-not-send.rs @@ -5,7 +5,7 @@ use core::marker::PhantomData; -use panic_halt as _; +use panic_semihosting as _; pub struct NotSend { _0: PhantomData<*const ()>, diff --git a/examples/t-resource.rs b/examples/t-resource.rs index 53665dc933..0a0fadfbcb 100644 --- a/examples/t-resource.rs +++ b/examples/t-resource.rs @@ -5,7 +5,7 @@ #![no_main] #![no_std] -use panic_halt as _; +use panic_semihosting as _; #[rtic::app(device = lm3s6965)] const APP: () = { diff --git a/examples/t-schedule.rs b/examples/t-schedule.rs index 4a23182273..bc4fccce90 100644 --- a/examples/t-schedule.rs +++ b/examples/t-schedule.rs @@ -5,7 +5,7 @@ #![no_main] #![no_std] -use panic_halt as _; +use panic_semihosting as _; use rtic::cyccnt::{Instant, U32Ext as _}; #[rtic::app(device = lm3s6965, monotonic = rtic::cyccnt::CYCCNT)] diff --git a/examples/t-spawn.rs b/examples/t-spawn.rs index 2d941b1567..a75a6e916d 100644 --- a/examples/t-spawn.rs +++ b/examples/t-spawn.rs @@ -5,7 +5,7 @@ #![no_main] #![no_std] -use panic_halt as _; +use panic_semihosting as _; #[rtic::app(device = lm3s6965)] const APP: () = { diff --git a/ui/single/locals-cfg.stderr b/ui/single/locals-cfg.stderr index bb558fa60e..8c01407115 100644 --- a/ui/single/locals-cfg.stderr +++ b/ui/single/locals-cfg.stderr @@ -27,11 +27,3 @@ error[E0425]: cannot find value `FOO` in this scope | 44 | FOO; | ^^^ not found in this scope - -error: duplicate lang item in crate `panic_halt`: `panic_impl`. - | - = note: first defined in crate `std`. - -error: duplicate lang item in crate `panic_semihosting`: `panic_impl`. - | - = note: first defined in crate `panic_halt`. diff --git a/ui/single/task-priority-too-high.rs b/ui/single/task-priority-too-high.rs index 539c3f5d0e..76c0a9727b 100644 --- a/ui/single/task-priority-too-high.rs +++ b/ui/single/task-priority-too-high.rs @@ -1,7 +1,5 @@ #![no_main] -use rtic::app; - #[rtic::app(device = lm3s6965)] const APP: () = { #[init] diff --git a/ui/single/task-priority-too-high.stderr b/ui/single/task-priority-too-high.stderr index eae6074df9..4434995b01 100644 --- a/ui/single/task-priority-too-high.stderr +++ b/ui/single/task-priority-too-high.stderr @@ -1,13 +1,5 @@ -warning: unused import: `rtic::app` - --> $DIR/task-priority-too-high.rs:3:5 - | -3 | use rtic::app; - | ^^^^^^^^^ - | - = note: #[warn(unused_imports)] on by default - error[E0080]: evaluation of constant value failed - --> $DIR/task-priority-too-high.rs:5:1 + --> $DIR/task-priority-too-high.rs:3:1 | -5 | #[rtic::app(device = lm3s6965)] +3 | #[rtic::app(device = lm3s6965)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to subtract with overflow