Skip to content

Commit 5cfa3ac

Browse files
aurabindodvc94ch
authored andcommitted
Remove stabilized feature flags and new panic_abort
Signed-off-by: Aurabindo Jayamohanan <[email protected]>
1 parent 1a93f7d commit 5cfa3ac

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

Cargo.lock

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
name = "rust-picosoc"
33
version = "0.1.0"
44
authors = ["David Craven <[email protected]>"]
5+
edition = "2018"
56

67
[dependencies]
7-
r0 = "0.2.2"
8+
r0 = "0.2.2"
9+
panic-abort = "0.3.1"

src/main.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
#![feature(extern_prelude)]
21
#![feature(global_asm)]
3-
#![feature(panic_implementation)]
42
#![no_main]
53
#![no_std]
64

75
const LED_ADDRESS: u32 = 0x0300_0000;
86

7+
use panic_abort;
8+
99
// The reset handler
1010
#[no_mangle]
1111
pub unsafe extern "C" fn Reset() -> ! {
@@ -35,11 +35,6 @@ extern "C" {
3535
static _sidata: u32;
3636
}
3737

38-
#[panic_implementation]
39-
#[no_mangle]
40-
pub fn panic_fmt(_info: &core::panic::PanicInfo) -> ! {
41-
loop {}
42-
}
4338

4439
// Make sure there is an abort when linking
4540
#[cfg(target_arch = "riscv32")]

0 commit comments

Comments
 (0)