Skip to content

Commit

Permalink
Try panic handler updates
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Feb 22, 2025
1 parent b7c63f1 commit 3d7d9fc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions compiler-builtins/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ core = { version = "1.0.0", optional = true, package = 'rustc-std-workspace-core
cc = { optional = true, version = "1.0" }

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

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

[[example]]
name = "intrinsics"
required-features = ["compiler-builtins"]
# [[example]]
# name = "intrinsics"
# required-features = ["compiler-builtins"]

[profile.release]
panic = 'abort'
Expand Down
8 changes: 4 additions & 4 deletions crates/panic-handler/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

extern crate core;

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

0 comments on commit 3d7d9fc

Please sign in to comment.