Skip to content

Commit a07546a

Browse files
committed
delete panic-handler
rust-lang/rust#51647 was fixed
1 parent a7df9ec commit a07546a

File tree

7 files changed

+1
-55
lines changed

7 files changed

+1
-55
lines changed

Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@ core = { version = "1.0.0", optional = true, package = 'rustc-std-workspace-core
3434
[build-dependencies]
3535
cc = { optional = true, version = "1.0" }
3636

37-
[dev-dependencies]
38-
panic-handler = { path = 'crates/panic-handler' }
39-
4037
[features]
4138
default = ["compiler-builtins"]
4239

crates/panic-handler/Cargo.toml

Lines changed: 0 additions & 6 deletions
This file was deleted.

crates/panic-handler/src/lib.rs

Lines changed: 0 additions & 11 deletions
This file was deleted.

examples/intrinsics.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
#![feature(allocator_api)]
1313
#![no_std]
1414

15-
extern crate panic_handler;
16-
1715
#[cfg(all(not(thumb), not(windows), not(target_arch = "wasm32")))]
1816
#[link(name = "c")]
1917
extern "C" {}

testcrate/tests/aeabi_memclr.rs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,6 @@ extern crate compiler_builtins;
1313
// test runner
1414
extern crate utest_cortex_m_qemu;
1515

16-
// overrides `panic!`
17-
#[macro_use]
18-
extern crate utest_macros;
19-
20-
use core::mem;
21-
22-
macro_rules! panic {
23-
($($tt:tt)*) => {
24-
upanic!($($tt)*);
25-
};
26-
}
27-
2816
extern "C" {
2917
fn __aeabi_memclr4(dest: *mut u8, n: usize);
3018
fn __aeabi_memset4(dest: *mut u8, n: usize, c: u32);
@@ -47,7 +35,7 @@ impl Aligned {
4735
#[test]
4836
fn memclr4() {
4937
let mut aligned = Aligned::new();
50-
assert_eq!(mem::align_of_val(&aligned), 4);
38+
assert_eq!(core::mem::align_of_val(&aligned), 4);
5139
let xs = &mut aligned.array;
5240

5341
for n in 0..9 {

testcrate/tests/aeabi_memcpy.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,6 @@ extern crate compiler_builtins;
1313
// test runner
1414
extern crate utest_cortex_m_qemu;
1515

16-
// overrides `panic!`
17-
#[macro_use]
18-
extern crate utest_macros;
19-
20-
macro_rules! panic {
21-
($($tt:tt)*) => {
22-
upanic!($($tt)*);
23-
};
24-
}
25-
2616
extern "C" {
2717
fn __aeabi_memcpy(dest: *mut u8, src: *const u8, n: usize);
2818
fn __aeabi_memcpy4(dest: *mut u8, src: *const u8, n: usize);

testcrate/tests/aeabi_memset.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,8 @@ extern crate compiler_builtins;
1313
// test runner
1414
extern crate utest_cortex_m_qemu;
1515

16-
// overrides `panic!`
17-
#[macro_use]
18-
extern crate utest_macros;
19-
2016
use core::mem;
2117

22-
macro_rules! panic {
23-
($($tt:tt)*) => {
24-
upanic!($($tt)*);
25-
};
26-
}
27-
2818
extern "C" {
2919
fn __aeabi_memset4(dest: *mut u8, n: usize, c: u32);
3020
}

0 commit comments

Comments
 (0)