Remove panic handler example from core crate
diff --git a/Makefile b/Makefile index 7d87c28..3e97e22 100644 --- a/Makefile +++ b/Makefile
@@ -45,7 +45,6 @@ PLATFORM=nrf52 cargo build --release --target=thumbv7em-none-eabi --example panic --features=custom_panic_handler,custom_alloc_error_handler PLATFORM=nrf52 cargo build --release --target=thumbv7em-none-eabi --example alloc_error --features=alloc,custom_alloc_error_handler PLATFORM=opentitan cargo build --release --target=riscv32imc-unknown-none-elf --examples # Important: This is testing a platform without atomics support - cd core && cargo build --release --target=thumbv7em-none-eabi --examples --features=custom_panic_handler && cd .. .PHONY: test test:
diff --git a/core/Cargo.toml b/core/Cargo.toml index f0477eb..64fa96e 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml
@@ -11,8 +11,3 @@ [dependencies] linked_list_allocator = { optional = true, version = "=0.6.5", default-features = false } - -[[example]] -name = "custom_panic" -path = "examples/custom_handler.rs" -required-features = ["custom_panic_handler"] \ No newline at end of file
diff --git a/core/examples/custom_handler.rs b/core/examples/custom_handler.rs deleted file mode 100644 index 8cccca9..0000000 --- a/core/examples/custom_handler.rs +++ /dev/null
@@ -1,12 +0,0 @@ -#![no_std] - -use libtock_core::result::CommandError; - -fn main() -> Result<(), CommandError> { - panic!("Bye world!"); -} - -#[panic_handler] -unsafe fn panic_handler(_info: &core::panic::PanicInfo) -> ! { - loop {} -}