Skip to content

Commit 4bd6bf8

Browse files
committed
panic-handler: Remove the no_core feature
This was introduced before `#[panic_handler]` was stable, but should no longer be needed. Additionally, we only need it for `builtins-test-intrinsics`, not as a dependency of `compiler-builtins`.
1 parent 5c3d8f2 commit 4bd6bf8

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

compiler-builtins/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ core = { version = "1.0.1", optional = true, package = "rustc-std-workspace-core
2424
[build-dependencies]
2525
cc = { optional = true, version = "1.2" }
2626

27-
[dev-dependencies]
28-
panic-handler = { path = "../crates/panic-handler" }
29-
3027
[features]
3128
default = ["compiler-builtins"]
3229

crates/panic-handler/src/lib.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
//! This is needed for tests on targets that require a `#[panic_handler]` function
22
3-
#![feature(no_core)]
4-
#![no_core]
5-
6-
extern crate core;
3+
#![no_std]
74

85
#[panic_handler]
9-
fn panic(_: &core::panic::PanicInfo) -> ! {
6+
fn panic(_: &core::panic::PanicInfo<'_>) -> ! {
107
loop {}
118
}

0 commit comments

Comments
 (0)