Skip to content

Commit ab453db

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 1599091 commit ab453db

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

library/compiler-builtins/builtins-test-intrinsics/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ publish = false
66
license = "MIT OR Apache-2.0"
77

88
[dependencies]
9-
compiler_builtins = { path = "../compiler-builtins", features = ["compiler-builtins"]}
9+
compiler_builtins = { path = "../compiler-builtins", features = ["compiler-builtins"] }
1010
panic-handler = { path = "../crates/panic-handler" }
1111

1212
[features]

library/compiler-builtins/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

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)