File tree 9 files changed +17
-17
lines changed 9 files changed +17
-17
lines changed Original file line number Diff line number Diff line change 15
15
#![ no_std]
16
16
17
17
extern crate alloc;
18
- extern crate panic_halt;
18
+ use panic_halt as _ ;
19
19
20
20
use self :: alloc:: vec;
21
21
use core:: alloc:: Layout ;
Original file line number Diff line number Diff line change 79
79
#![ no_main]
80
80
#![ no_std]
81
81
82
- extern crate panic_halt;
82
+ use panic_halt as _ ;
83
83
84
84
use core:: ptr;
85
85
Original file line number Diff line number Diff line change 26
26
#![ no_std]
27
27
28
28
#[ allow( unused_extern_crates) ]
29
- extern crate panic_halt;
29
+ use panic_halt as _ ;
30
30
31
31
use cortex_m:: peripheral:: syst:: SystClkSource ;
32
32
use cortex_m_rt:: entry;
Original file line number Diff line number Diff line change 10
10
#![ no_main]
11
11
#![ no_std]
12
12
13
- extern crate panic_halt;
13
+ use panic_halt as _ ;
14
14
15
15
use cortex_m:: peripheral:: syst:: SystClkSource ;
16
16
use cortex_m:: Peripherals ;
Original file line number Diff line number Diff line change 3
3
#![ no_main]
4
4
#![ no_std]
5
5
6
- extern crate panic_halt;
6
+ use panic_halt as _ ;
7
7
8
8
use cortex_m_rt:: entry;
9
9
use cortex_m_semihosting:: { debug, hprintln} ;
Original file line number Diff line number Diff line change 17
17
#![ no_main]
18
18
#![ no_std]
19
19
20
- extern crate panic_halt;
20
+ use panic_halt as _ ;
21
21
22
22
use cortex_m:: { iprintln, Peripherals } ;
23
23
use cortex_m_rt:: entry;
Original file line number Diff line number Diff line change 10
10
// Pick one of these panic handlers:
11
11
12
12
// `panic!` halts execution; the panic message is ignored
13
- extern crate panic_halt;
13
+ use panic_halt as _ ;
14
14
15
15
// Reports panic messages to the host stderr using semihosting
16
16
// NOTE to use this you need to uncomment the `panic-semihosting` dependency in Cargo.toml
17
- // extern crate panic_semihosting;
17
+ // use panic_semihosting as _ ;
18
18
19
19
// Logs panic messages using the ITM (Instrumentation Trace Macrocell)
20
20
// NOTE to use this you need to uncomment the `panic-itm` dependency in Cargo.toml
21
- // extern crate panic_itm;
21
+ // use panic_itm as _ ;
22
22
23
23
use cortex_m_rt:: entry;
24
24
Original file line number Diff line number Diff line change 23
23
24
24
// pick a panicking behavior
25
25
#[ cfg( not( test) ) ]
26
- extern crate panic_halt; // you can put a breakpoint on `rust_begin_unwind` to catch panics
27
- // extern crate panic_abort; // requires nightly
28
- // extern crate panic_itm; // logs messages over ITM; requires ITM support
29
- // extern crate panic_semihosting; // logs messages to the host stderr; requires a debugger
26
+ use panic_halt as _ ; // you can put a breakpoint on `rust_begin_unwind` to catch panics
27
+ // use panic_abort as _ ; // requires nightly
28
+ // use panic_itm as _ ; // logs messages over ITM; requires ITM support
29
+ // use panic_semihosting as _ ; // logs messages to the host stderr; requires a debugger
30
30
31
31
use cortex_m:: asm;
32
32
use cortex_m_rt:: entry;
Original file line number Diff line number Diff line change 2
2
#![ no_main]
3
3
4
4
// pick a panicking behavior
5
- extern crate panic_halt; // you can put a breakpoint on `rust_begin_unwind` to catch panics
6
- // extern crate panic_abort; // requires nightly
7
- // extern crate panic_itm; // logs messages over ITM; requires ITM support
8
- // extern crate panic_semihosting; // logs messages to the host stderr; requires a debugger
5
+ use panic_halt as _ ; // you can put a breakpoint on `rust_begin_unwind` to catch panics
6
+ // use panic_abort as _ ; // requires nightly
7
+ // use panic_itm as _ ; // logs messages over ITM; requires ITM support
8
+ // use panic_semihosting as _ ; // logs messages to the host stderr; requires a debugger
9
9
10
10
use cortex_m:: asm;
11
11
use cortex_m_rt:: entry;
You can’t perform that action at this time.
0 commit comments