We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3851d8 commit bb868f4Copy full SHA for bb868f4
cortex-m-rt/examples/divergent-default-handler.rs
@@ -1,4 +1,3 @@
1
-#![deny(unsafe_code)]
2
#![deny(warnings)]
3
#![no_main]
4
#![no_std]
@@ -14,6 +13,6 @@ fn foo() -> ! {
14
13
}
15
16
#[exception]
17
-fn DefaultHandler(_irqn: i16) -> ! {
+unsafe fn DefaultHandler(_irqn: i16) -> ! {
18
loop {}
19
cortex-m-rt/examples/override-exception.rs
@@ -1,6 +1,5 @@
//! How to override the hard fault exception handler and the default exception handler
5
6
@@ -18,12 +17,12 @@ fn main() -> ! {
20
21
-fn DefaultHandler(_irqn: i16) {
+unsafe fn DefaultHandler(_irqn: i16) {
22
asm::bkpt();
23
24
25
26
-fn HardFault(_ef: &ExceptionFrame) -> ! {
+unsafe fn HardFault(_ef: &ExceptionFrame) -> ! {
27
28
29
0 commit comments