Skip to content

Commit 3d7d9fc

Browse files
committed
Try panic handler updates
1 parent b7c63f1 commit 3d7d9fc

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

compiler-builtins/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ core = { version = "1.0.0", optional = true, package = 'rustc-std-workspace-core
3737
cc = { optional = true, version = "1.0" }
3838

3939
[dev-dependencies]
40-
panic-handler = { path = 'crates/panic-handler' }
40+
panic-handler = { path = "../crates/panic-handler" }
4141

4242
[features]
4343
default = ["compiler-builtins"]
@@ -71,9 +71,9 @@ rustc-dep-of-std = ['compiler-builtins', 'core']
7171
# are not normally public but are required by the `testcrate`
7272
public-test-deps = []
7373

74-
[[example]]
75-
name = "intrinsics"
76-
required-features = ["compiler-builtins"]
74+
# [[example]]
75+
# name = "intrinsics"
76+
# required-features = ["compiler-builtins"]
7777

7878
[profile.release]
7979
panic = 'abort'

crates/panic-handler/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
extern crate core;
77

8-
#[panic_handler]
9-
fn panic(_: &core::panic::PanicInfo) -> ! {
10-
loop {}
11-
}
8+
// #[panic_handler]
9+
// fn panic(_: &core::panic::PanicInfo) -> ! {
10+
// loop {}
11+
// }

0 commit comments

Comments
 (0)