File tree 2 files changed +2
-4
lines changed
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 11
11
12
12
#![ feature( alloc) ]
13
13
#![ feature( alloc_error_handler) ]
14
- #![ feature( global_allocator) ]
15
14
#![ feature( lang_items) ]
16
15
#![ no_main]
17
16
#![ no_std]
@@ -58,7 +57,7 @@ fn main() -> ! {
58
57
// define what happens in an Out Of Memory (OOM) condition
59
58
#[ alloc_error_handler]
60
59
#[ no_mangle]
61
- pub fn alloc_error ( layout : Layout ) -> ! {
60
+ pub fn alloc_error ( _layout : Layout ) -> ! {
62
61
asm:: bkpt ( ) ;
63
62
64
63
loop { }
Original file line number Diff line number Diff line change 21
21
22
22
extern crate cortex_m;
23
23
24
- #[ macro_use( entry, exception ) ]
24
+ #[ macro_use( entry) ]
25
25
extern crate cortex_m_rt as rt;
26
26
27
27
// makes `panic!` print messages to the host stderr using semihosting
28
28
extern crate panic_semihosting;
29
29
30
30
use cortex_m:: asm;
31
- use rt:: ExceptionFrame ;
32
31
33
32
// the program entry point is ...
34
33
entry ! ( main) ;
You can’t perform that action at this time.
0 commit comments