File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 1
1
#![ deny( warnings) ]
2
- #![ deny( unsafe_code) ]
3
2
#![ no_main]
4
3
#![ no_std]
5
4
@@ -46,7 +45,7 @@ fn main() -> ! {
46
45
47
46
#[ allow( clippy:: empty_loop) ]
48
47
#[ exception]
49
- fn HardFault ( ef : & ExceptionFrame ) -> ! {
48
+ unsafe fn HardFault ( ef : & ExceptionFrame ) -> ! {
50
49
hprintln ! ( "Hard fault {:#?}" , ef) . unwrap ( ) ;
51
50
loop { }
52
51
}
Original file line number Diff line number Diff line change 1
1
#![ deny( warnings) ]
2
- #![ deny( unsafe_code) ]
3
2
#![ no_main]
4
3
#![ no_std]
5
4
@@ -47,11 +46,11 @@ fn main() -> ! {
47
46
}
48
47
49
48
#[ exception]
50
- fn HardFault ( ef : & ExceptionFrame ) -> ! {
49
+ unsafe fn HardFault ( ef : & ExceptionFrame ) -> ! {
51
50
panic ! ( "Hard fault {:#?}" , ef) ;
52
51
}
53
52
54
53
#[ exception]
55
- fn DefaultHandler ( irqn : i16 ) {
54
+ unsafe fn DefaultHandler ( irqn : i16 ) {
56
55
panic ! ( "Unhandled exception (IRQn = {})" , irqn) ;
57
56
}
Original file line number Diff line number Diff line change 1
1
#![ deny( warnings) ]
2
- #![ deny( unsafe_code) ]
3
2
#![ no_main]
4
3
#![ no_std]
5
4
@@ -38,6 +37,6 @@ fn main() -> ! {
38
37
}
39
38
40
39
#[ exception]
41
- fn HardFault ( ef : & ExceptionFrame ) -> ! {
40
+ unsafe fn HardFault ( ef : & ExceptionFrame ) -> ! {
42
41
panic ! ( "Hard fault {:#?}" , ef) ;
43
42
}
You can’t perform that action at this time.
0 commit comments