Skip to content

Commit a97747f

Browse files
authored
Merge pull request #528 from zachs18/patch-1
panic-semihosting, panic-itm: Move `#![no_std]` above `#![cfg(target...)]`
2 parents f5343f3 + c122364 commit a97747f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

panic-itm/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
//! panicked at 'FOO', src/main.rs:6:5
2929
//! ```
3030
31+
#![no_std]
3132
#![cfg(any(all(target_arch = "arm", target_os = "none"), doc))]
3233
#![deny(missing_docs)]
3334
#![deny(warnings)]
34-
#![no_std]
3535

3636
extern crate cortex_m;
3737

panic-semihosting/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@
4848
//! We discourage using this feature when the program will run on hardware as the exit call can
4949
//! leave the hardware debugger in an inconsistent state.
5050
51+
#![no_std]
5152
#![cfg(all(target_arch = "arm", target_os = "none"))]
5253
#![deny(missing_docs)]
5354
#![deny(warnings)]
54-
#![no_std]
5555

5656
extern crate cortex_m;
5757
extern crate cortex_m_semihosting as sh;

0 commit comments

Comments
 (0)