diff options
author | 2020-08-23 21:57:08 +0200 | |
---|---|---|
committer | 2020-08-23 21:57:08 +0200 | |
commit | 679d42223fe79759bc634675694c46ae8ba0ce62 (patch) | |
tree | 141c8540c6e2b90ddd1d8b46ca284b6422103289 /cortex-m-rt/tests/compile-fail/hard-fault-twice.rs | |
parent | 972f60f50e48c07fda40d2b853558c7db9b5a4ff (diff) | |
download | cortex-m-679d42223fe79759bc634675694c46ae8ba0ce62.tar.gz cortex-m-679d42223fe79759bc634675694c46ae8ba0ce62.tar.zst cortex-m-679d42223fe79759bc634675694c46ae8ba0ce62.zip |
Make it unsafe to define NMI handlers
Diffstat (limited to 'cortex-m-rt/tests/compile-fail/hard-fault-twice.rs')
-rw-r--r-- | cortex-m-rt/tests/compile-fail/hard-fault-twice.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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 030b54c..03b79a5 100644 --- a/cortex-m-rt/tests/compile-fail/hard-fault-twice.rs +++ b/cortex-m-rt/tests/compile-fail/hard-fault-twice.rs @@ -12,7 +12,7 @@ fn foo() -> ! { } #[exception] -fn HardFault(_ef: &ExceptionFrame) -> ! { +unsafe fn HardFault(_ef: &ExceptionFrame) -> ! { loop {} } @@ -20,7 +20,7 @@ pub mod reachable { use cortex_m_rt::{exception, ExceptionFrame}; #[exception] //~ ERROR symbol `HardFault` is already defined - fn HardFault(_ef: &ExceptionFrame) -> ! { + unsafe fn HardFault(_ef: &ExceptionFrame) -> ! { loop {} } } |